Re: PG_DUMP and table locking in PG7.4

Поиск
Список
Период
Сортировка
От Andrew - Supernews
Тема Re: PG_DUMP and table locking in PG7.4
Дата
Msg-id slrndnlaee.nb4.andrew+nonews@trinity.supernews.net
обсуждение исходный текст
Ответ на PG_DUMP and table locking in PG7.4  (Yann Michel <yann-postgresql@spline.de>)
Список pgsql-hackers
On 2005-11-16, Yann Michel <yann-postgresql@spline.de> wrote:
> Hi,
>
> On Wed, Nov 16, 2005 at 09:59:44AM +0800, Christopher Kings-Lynne wrote:
>> It acquires share locks on EVERY table.
>
> do you mean on EVERY inherited table once one of them is dumped? Or do
> you mean that a share lock is requested(and hold) on each of them once
> one is dumped, i.e., sequentially?

pg_dump obtains an ACCESS SHARE lock on _every_ table it dumps, including
the inherited child tables individually, _before_ it starts dumping anything.

-- 
Andrew, Supernews
http://www.supernews.com - individual and corporate NNTP services


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

Предыдущее
От: Yann Michel
Дата:
Сообщение: Re: PG_DUMP and table locking in PG7.4
Следующее
От: "Jim C. Nasby"
Дата:
Сообщение: OS X 7.4 failure