Re: pg_xlog becomes extremely large during CREATE INDEX

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pg_xlog becomes extremely large during CREATE INDEX
Дата
Msg-id 2971.1084418321@sss.pgh.pa.us
обсуждение исходный текст
Ответ на pg_xlog becomes extremely large during CREATE INDEX  ("Jeffrey W. Baker" <jwbaker@acm.org>)
Ответы Re: pg_xlog becomes extremely large during CREATE INDEX  ("Jeffrey W. Baker" <jwbaker@acm.org>)
Список pgsql-general
"Jeffrey W. Baker" <jwbaker@acm.org> writes:
> I have configured 24 checkpoint segments,
> which I expect gives me a worst-case usage in pg_xlog of 384MB.
> Unfortunately, during the CREATE INDEX, pg_xlog becomes full!

Postgres version?  AFAIR 7.1.2 or thereabouts would act that way,
because it wouldn't discard log segments containing work of open
transactions.

The only reason I can think of for such behavior in a current version
is if the checkpoint isn't completing for some reason.  Have you looked
in the postmaster log to see if checkpoint is bleating about anything?

Note that your calculation is off anyway: per documentation, recent
versions will allow up to 2*checkpoint_segments+1 WAL files to exist.
This is because we save the last two checkpoints worth of data.

            regards, tom lane

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

Предыдущее
От: "Jeffrey W. Baker"
Дата:
Сообщение: pg_xlog becomes extremely large during CREATE INDEX
Следующее
От: Dennis Gearon
Дата:
Сообщение: Functionality in database or external langauge