What to do after an "ERROR: out of memory"

Поиск
Список
Период
Сортировка
От John Cheng
Тема What to do after an "ERROR: out of memory"
Дата
Msg-id a18a22ec0807290829s727f3621t6b0cf4c15d7785c9@mail.gmail.com
обсуждение исходный текст
Ответы Re: What to do after an "ERROR: out of memory"  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
We were updating a large set of data (executing a stored procedure
against a large set of data in one statement/transaction) while
autovacuum was running.

The resulting message looked like:

2008-07-28 21:18:08 CDT CONTEXT: automatic vacuum of table
"databasename._lms.sl_log_2" TopMemoryContext: 154528 total in 18
blocks; 19104 free (62 chunks); 135424 used
  ....
2008-07-28 21:28:53 CDT database_other ERROR: out of memory
2008-07-28 21:48:13 CDT ERROR:
canceling autovacuum task
  ...

It looked like the update transaction/statement was cancelled, and the
autovacuum tasks running at the time were also cancelled.

How does Postgres handle out of memory errors, is it simply cancelling
these tasks as if the transactions have been rolled back? Is there
anything that needs to be done to make sure the data in the database
is not corrupted?


--
- John L Cheng

В списке pgsql-general по дате отправления:

Предыдущее
От: "Ivan Zolotukhin"
Дата:
Сообщение: interesting trigger behaviour in 8.3
Следующее
От: Csaba Nagy
Дата:
Сообщение: Re: interesting trigger behaviour in 8.3