SQL 8.2.7 - complete purged Database has still 3GB

Forum with tips, support, etc, on using the PostgreSQL database with Poker Tracker. Please post any PostgreSQL questions here.

SQL 8.2.7 - complete purged Database has still 3GB

Postby balllala » Sat Sep 27, 2008 5:52 am

Is it possible that PT+SQL database age with time, so you have to make a knew one after a periode of time?
I did everything to try to reduce the space needed for a database that has no longer any data in it, but it didn´t work.

I´m concerned about it, because one of my mining database has already 18GB altough i purge old hands and vakuum it periodical.

Do you know where this problem comes from and how i can fix it without creating new databases?
balllala
 
Posts: 10
Joined: Mon May 12, 2008 5:47 am

Re: SQL 8.2.7 - complete purged Database has still 3GB

Postby ptrack pat » Sat Sep 27, 2008 9:05 am

Did you do a FULL vacuum/analyze?
ptrack pat
 
Posts: 4841
Joined: Sun Dec 09, 2007 12:38 pm

Re: SQL 8.2.7 - complete purged Database has still 3GB

Postby balllala » Sat Sep 27, 2008 10:18 am

Yes and not only once.

So it seems you don´t have any suspicion to get that database back to fetus size.
balllala
 
Posts: 10
Joined: Mon May 12, 2008 5:47 am

Re: SQL 8.2.7 - complete purged Database has still 3GB

Postby ptrack pat » Sat Sep 27, 2008 10:44 am

A full vacuum as opposed to just doing a normal v/a should free up the disk space that was taken by the data that was purged. If it's not doing that then I don't know why that is so.
ptrack pat
 
Posts: 4841
Joined: Sun Dec 09, 2007 12:38 pm

Re: SQL 8.2.7 - complete purged Database has still 3GB

Postby balllala » Sat Sep 27, 2008 4:03 pm

With PgAdmin i found out that the biggest part of space used is for the hand_histories (i think the txt for export). They seem not to be delete by purge. Could this be?
balllala
 
Posts: 10
Joined: Mon May 12, 2008 5:47 am

Re: SQL 8.2.7 - complete purged Database has still 3GB

Postby ptrack pat » Sat Sep 27, 2008 4:08 pm

You can use the query tool in pgAdmin to delete the records from that table....

delete from hand_histories ;


Then do a full v/a after that.
ptrack pat
 
Posts: 4841
Joined: Sun Dec 09, 2007 12:38 pm

Re: SQL 8.2.7 - complete purged Database has still 3GB

Postby balllala » Sat Sep 27, 2008 4:21 pm

i get this error message.

ERROR: unterminated quoted identifier at or near ""
delete from hand_histories;
"
SQL state: 42601
Character: 1

I accidentally change the Position of one Column. Could this be the reason?
balllala
 
Posts: 10
Joined: Mon May 12, 2008 5:47 am

Re: SQL 8.2.7 - complete purged Database has still 3GB

Postby ptrack pat » Sat Sep 27, 2008 6:26 pm

Don't use the double-quotes, it should be

delete from hand_histories ;
ptrack pat
 
Posts: 4841
Joined: Sun Dec 09, 2007 12:38 pm

Re: SQL 8.2.7 - complete purged Database has still 3GB

Postby balllala » Sat Sep 27, 2008 6:40 pm

will there be any Problem without this column?

After deleting it´s gone, the files too. But the database still believes to be that big...
balllala
 
Posts: 10
Joined: Mon May 12, 2008 5:47 am

Re: SQL 8.2.7 - complete purged Database has still 3GB

Postby ptrack pat » Sat Sep 27, 2008 8:16 pm

You have deleted just the data from that table, that's all. Did you do a full v/a after deleting from this table?
ptrack pat
 
Posts: 4841
Joined: Sun Dec 09, 2007 12:38 pm

Next

Return to PostgreSQL Forum

Who is online

Users browsing this forum: No registered users and 1 guest

cron
highfalutin