Re: Having trouble with backups (was: Re: Crash Recovery)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Having trouble with backups (was: Re: Crash Recovery)
Дата
Msg-id 22650.1043442101@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Having trouble with backups (was: Re: Crash Recovery)  (Carlos Moreno <moreno@mochima.com>)
Список pgsql-performance
Carlos Moreno <moreno@mochima.com> writes:
> And the second (and intriguing) problem:  whenever I run pg_dump,
> my system *freezes* until pg_dump finishes.  When I say "system",
> I mean the software that is running and sending data to the PG
> database.

Other people have responded on the assumption that this is a performance
problem, but you should also consider the possibility that it's bad
coding of your application software.  Does your app try to grab
exclusive table locks?  If so, it'll sit there waiting for the pg_dump
to complete.  pg_dump only takes ACCESS SHARE lock on the tables it's
working on, which is the weakest type of lock and does not conflict with
most database operations ... but it does conflict with ACCESS EXCLUSIVE
lock requests.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Does "correlation" mislead the optimizer on large
Следующее
От: Noah Silverman
Дата:
Сообщение: Re: Does "correlation" mislead the optimizer on large