Re: psql seems to hang during delete query - Mailing list pgsql-general

From Sven Willenberger
Subject Re: psql seems to hang during delete query
Date
Msg-id 1153404815.6821.1.camel@lanshark.dmv.com
Whole thread Raw
In response to Re: psql seems to hang during delete query  ("surabhi.ahuja" <surabhi.ahuja@iiitb.ac.in>)
List pgsql-general
On Thu, 2006-07-20 at 12:48 +0530, surabhi.ahuja wrote:
> so how much space should be free so that i am able to delete
>
> i have a hard disk of size 130 G.
>
>
> thanks,
> regards
> Surabhi
>
>
> ______________________________________________________________________
If you are trying to delete the entire contents of a table (and are not
using slony replication or similar) then a simple TRUNCATE <tablename>
will achieve the desired result and free up some diskspace.
Alternatively, if you have indexes on the table, you could try to drop
the indexes (if they are bloated, you can probably regain some diskspace
that way). Delete the rows you need and then create the indexes anew.

Sven


pgsql-general by date:

Previous
From: Jerry LeVan
Date:
Subject: Ann: PyPgExplorer-0.8
Next
From: Sven Willenberger
Date:
Subject: Re: timestamp and calculations.