pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chris Hoover <revoohc@gmail.com>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: What happens to transactions durring a pg_dump?
Date: Mon, 9 Jan 2006 12:22:27 -0500
Message-ID: <1d219a6f0601090922s5224e78emd68cf850b836c2af@mail.gmail.com> (raw)

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.

Example

pg_dump starts
    - transaction is begun
      - row from table a is deleted
      - row from table b is updated
    - transaction is commited
pg_dump finishes

What happens to the deleted row and the updated row with respect to the
backup file.

1.  If they are done before table a and table b are backed up?

2.  If table a is dumped and table b is not?

Thanks,

Chris

view thread (7+ messages)  latest in thread

Message-ID: <1d219a6f0601090922s5224e78emd68cf850b836c2af@mail.gmail.com>
Permalink:  ../1d219a6f0601090922s5224e78emd68cf850b836c2af@mail.gmail.com/
Also on:    postgresql.org/message-id/1d219a6f0601090922s5224e78emd68cf850b836c2af@mail.gmail.com

 · 

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: revoohc@gmail.com
  Subject: Re: What happens to transactions durring a pg_dump?
  In-Reply-To: <1d219a6f0601090922s5224e78emd68cf850b836c2af@mail.gmail.com>
  References: <1d219a6f0601090922s5224e78emd68cf850b836c2af@mail.gmail.com>

* 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