pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Fuhr <mike@fuhr.org>
To: Chris Hoover <revoohc@gmail.com>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: What happens to transactions durring a pg_dump?
Date: Mon, 9 Jan 2006 10:45:11 -0700
Message-ID: <20060109174511.GA43775@winnie.fuhr.org> (raw)
In-Reply-To: <1d219a6f0601090922s5224e78emd68cf850b836c2af@mail.gmail.com>
References: <1d219a6f0601090922s5224e78emd68cf850b836c2af@mail.gmail.com>

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



view thread (7+ messages)  latest in thread

Message-ID: <20060109174511.GA43775@winnie.fuhr.org>
Permalink:  ../20060109174511.GA43775@winnie.fuhr.org/
Also on:    postgresql.org/message-id/20060109174511.GA43775@winnie.fuhr.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: mike@fuhr.org, revoohc@gmail.com
  Subject: Re: What happens to transactions durring a pg_dump?
  In-Reply-To: <20060109174511.GA43775@winnie.fuhr.org>
  References: <1d219a6f0601090922s5224e78emd68cf850b836c2af@mail.gmail.com> <20060109174511.GA43775@winnie.fuhr.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox