Re: pg_start_backup() takes too long

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: pg_start_backup() takes too long
Дата
Msg-id 1222618685.4445.1040.camel@ebony.2ndQuadrant
обсуждение исходный текст
Ответ на Re: pg_start_backup() takes too long  ("Joshua D. Drake" <jd@commandprompt.com>)
Ответы Re: pg_start_backup() takes too long  ("Ivan Zolotukhin" <ivan.zolotukhin@gmail.com>)
Список pgsql-general
On Sun, 2008-09-28 at 08:35 -0700, Joshua D. Drake wrote:
> Ivan Zolotukhin wrote:
> > Hello,
> >
> > Nothing bad both in system and postgres logs :( No serious activity
> > during backup. I've had to change statement_timeout for backup user to
> > make it work. But I cannot reproduce this case unfortunately.
>
> This is actually not uncommon and PostgreSQL shows exactly nothing in
> terms of why it is taking so long. The only assumption I have come up
> with is that start_backup does cause a checkpoint.

Yes, it does a normal checkpoint and writes a file. No reason for it to
take longer than any other checkpoint.

At 8.2 and below checkpoints were frequently delayed on busy systems.
This was because of lwlock starvation during commit phase of
transactions. That was fixed in 8.3.

--
 Simon Riggs           www.2ndQuadrant.com
 PostgreSQL Training, Services and Support


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

Предыдущее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: pg_start_backup() takes too long
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Can anyone explain?