Re: DB archiving

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: DB archiving
Дата
Msg-id 6522.1047916403@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: DB archiving  (Victor Yegorov <viy@pirmabanka.lv>)
Список pgsql-admin
Victor Yegorov <viy@pirmabanka.lv> writes:
> One more thing. I still cannot find any info on HOW pg_dump locks data it
> is going to backup.

It doesn't.  Well, it does take a reader's lock (AccessShareLock) on
each table it intends to back up, but that's essentially just preventing
the table from being dropped completely.  The individual data rows need
not be locked.  pg_dump does the whole dump as a single transaction, so
it can rely on MVCC semantics to give it a consistent picture of the
data in every table.  Basically, it doesn't "see" changes that commit
after its transaction starts.  See the discussion of MVCC.

            regards, tom lane

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

Предыдущее
От: Andreas Schmitz
Дата:
Сообщение: select database_size (another one)
Следующее
От: "Matt Clark"
Дата:
Сообщение: Re: recomended plataform