Re: pg_dump and server responsiveness

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pg_dump and server responsiveness
Дата
Msg-id 15661.1196957353@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pg_dump and server responsiveness  ("Bryan Murphy" <bryan.murphy@gmail.com>)
Ответы Re: pg_dump and server responsiveness  ("Bryan Murphy" <bryan.murphy@gmail.com>)
Список pgsql-general
"Bryan Murphy" <bryan.murphy@gmail.com> writes:
> It does appear to be lock contention.  I took a closer look this
> morning, and I noticed our web site was consistently locking up on a
> particular table, and there were a number of exclusive locks.  I
> started eliminating various jobs, and found the one that essentially
> rewrites that particular table every 5 minutes to be the culprit
> (create new table, drop old table, rename new table).

> Is there a better way we can do this so that we won't causes lock
> contention during a dump?

Why dump such a table at all?  It evidently doesn't contain any
data you need to preserve ...

I forget which version you are running, but 8.2 pg_dump has an
--exclude-table switch which'd work peachy for this.

            regards, tom lane

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

Предыдущее
От: "Bryan Murphy"
Дата:
Сообщение: Re: pg_dump and server responsiveness
Следующее
От: "Bryan Murphy"
Дата:
Сообщение: Re: pg_dump and server responsiveness