Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Novice > Re: Slow Query ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 3153 of 3255
Post > Topic >>

Re: Slow Query and Big File Size even after emptying

by mailing_lists@[EMAIL PROTECTED] (Mark Roberts) Jun 30, 2008 at 09:00 PM

On Tue, 2008-07-01 at 11:02 +0800, Ridvan Lakas ng Bayan S. Baluyos
wrote:
> Hi All,
> 
> I checked the file size of my database and it's 115GB. I already
> figured out which tables suck up all the space and I decided to delete
> all the entries in them. But still after emptying (DELETE FROM
> <tablename>), the file size still hasn't changed. I already tried to
> VACUUM the table. Also, even if there are already 0 records within the
> table that I emptied, when I query to that table it's so slow and then
> it just gives a 0 results.
> 
> Is there anything that I missed out here? Like do I need to do some
> other cleanups within postgres(eg. cache, etc)?
> 
> 
> TIA for your replies. It would be very much appreciated.
> 
> 
> Ridvan

You might consider using truncate, if you're serious about removing
those rows.  Otherwise, you could consider a vacuum full, and don't
forget to analyze afterwards.

-Mark


-- 
Sent via pgsql-novice mailing list (pgsql-novice@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-novice
 




 1 Posts in Topic:
Re: Slow Query and Big File Size even after emptying
mailing_lists@[EMAIL PROT  2008-06-30 21:00:16 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Oct 11 20:18:57 CDT 2008.