What happens to transactions durring a pg_dump?

From: Chris Hoover <revoohc(at)gmail(dot)com>
To: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: What happens to transactions durring a pg_dump?
Date: 2006-01-09 17:22:27
Message-ID: 1d219a6f0601090922s5224e78emd68cf850b836c2af@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Jaime Casanova 2006-01-09 17:29:00 Re: What happens to transactions durring a pg_dump?
Previous Message Sistemas C.M.P. 2006-01-09 17:07:39 postgresql.conf