Re: What happens to transactions durring a pg_dump?

Поиск
Список
Период
Сортировка
Искать
От
Chris Hoover
Тема
Re: What happens to transactions durring a pg_dump?
Дата
Msg-id
1d219a6f0601091000u45439e1dq1eb8296e8ffa3dba@mail.gmail.com
Ответ на
Список
Дерево обсуждения
What happens to transactions durring a pg_dump? Chris Hoover <revoohc@gmail.com>
Re: What happens to transactions durring a pg_dump? Michael Fuhr <mike@fuhr.org>
Re: What happens to transactions durring a pg_dump? Chris Hoover <revoohc@gmail.com>
Re: What happens to transactions durring a pg_dump? Jaime Casanova <systemguards@gmail.com>
Re: What happens to transactions durring a pg_dump? Bruno Wolff III <bruno@wolff.to>
Re: What happens to transactions durring a pg_dump? Tom Lane <tgl@sss.pgh.pa.us>
Re: What happens to transactions durring a pg_dump? Jaime Casanova <systemguards@gmail.com>


On 1/9/06, Michael Fuhr <mike@fuhr.org> wrote:
On Mon, Jan 09, 2006 at 12:22:27PM -0500, Chris Hoover wrote:
> I'm trying to understand better what happens to a transaction that is
> commited in the middle of a pg_dump.  Is the transaction included in the
> database dump, or is it excluded.

If you look at the pg_dump source code or turn on query logging,
you should see that pg_dump starts with

BEGIN
SET TRANSACTION ISOLATION LEVEL SERIALIZABLE

See "Transaction Isolation" in the "Concurrency Control" chapter of the
documentation for an explanation of what that means.

http://www.postgresql.org/docs/8.1/interactive/transaction-iso.html

--
Michael Fuhr

Just to make sure I correctly understood what I read, once pg_dump issues the :
BEGIN
SET TRANSACTION ISOLATION LEVEL SERIALIZABLE

The backup will only see transactions that were commited before the isolation level was set Is this correct?  Any transactions that are commited while the backup is running are not seen by pg_dump.

Correct?

Thanks,

Chris
В списке pgsql-admin по дате отправления
От: Michael Fuhr
Дата:
От: Tom Lane
Дата:
Сообщение: Re: postgresql.conf
FAQ