Re: psql seems to hang during delete query
От | Harald Armin Massa |
---|---|
Тема | Re: psql seems to hang during delete query |
Дата | |
Msg-id | 7be3f35d0607192346j6593dd58lcd8cd81f17849257@mail.gmail.com обсуждение исходный текст |
Ответ на | psql seems to hang during delete query ("surabhi.ahuja" <surabhi.ahuja@iiitb.ac.in>) |
Список | pgsql-general |
You can't delete from a full disk :)
No, really: database systems need space for logging, WAL, whatever.
And even with "delete" PostgreSQL will free no single byte, as deleting is done with marking the row as deleted. Read up on multi version concurrency why this has to be that way.
To reclaim space: vacuum freeze
So, to get space, you have to have space first. Delete something else.
Harald
--
GHUM Harald Massa
persuadere et programmare
Harald Armin Massa
Reinsburgstraße 202b
70197 Stuttgart
0173/9409607
-
on different matter:
EuroPython 2006 is over. It was a GREAT conference. If you missed it, now you can prepare budget for visiting EuroPython 2007.
No, really: database systems need space for logging, WAL, whatever.
And even with "delete" PostgreSQL will free no single byte, as deleting is done with marking the row as deleted. Read up on multi version concurrency why this has to be that way.
To reclaim space: vacuum freeze
So, to get space, you have to have space first. Delete something else.
Harald
On 7/20/06, surabhi.ahuja <surabhi.ahuja@iiitb.ac.in> wrote:
i am using postgresql 8.0.0my disk is 100% fulli have a database called xi do the followingpsql xdelete from table;nothing happensi try to see the top outputi see the following1768 sdc 25 0 41860 32m 30m R 99.7 0.8 11:29.35 postmaster
i also saw this appearing2525 root 16 0 7296 720 620 S 0.3 0.0 0:07.62 hald-addon-storits been almost half an hourand the database is still in the same state. (all the rows still exist)what is happening?hasnt it started deleteing yet?postgreslog dont say anything.what can be done in such a case?thanks,regardsSurabhi
--
GHUM Harald Massa
persuadere et programmare
Harald Armin Massa
Reinsburgstraße 202b
70197 Stuttgart
0173/9409607
-
on different matter:
EuroPython 2006 is over. It was a GREAT conference. If you missed it, now you can prepare budget for visiting EuroPython 2007.
В списке pgsql-general по дате отправления: