Re: psql seems to hang during delete query

Поиск
Список
Период
Сортировка
От Sven Willenberger
Тема Re: psql seems to hang during delete query
Дата
Msg-id 1153404815.6821.1.camel@lanshark.dmv.com
обсуждение исходный текст
Ответ на Re: psql seems to hang during delete query  ("surabhi.ahuja" <surabhi.ahuja@iiitb.ac.in>)
Список 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 по дате отправления:

Предыдущее
От: Jerry LeVan
Дата:
Сообщение: Ann: PyPgExplorer-0.8
Следующее
От: Sven Willenberger
Дата:
Сообщение: Re: timestamp and calculations.