Re: pg_dump question - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: pg_dump question
Date
Msg-id 200201190057.g0J0v5f10337@candle.pha.pa.us
Whole thread Raw
In response to pg_dump question  (Laurette Cisneros <laurette@nextbus.com>)
Responses Re: pg_dump question  (Laurette Cisneros <laurette@nextbus.com>)
List pgsql-hackers
Laurette Cisneros wrote:
> 
> We use pg_dump nightly to dump data from all tables in our databases (only
> table data, makes restore easier, trust me on that).
> 
> My question is this:
> 
> I have many tables that have millions of rows.
> 
> Let's say I start the pg_dump...
> 
> Then, an update in a transaction occurs that updates 3 different tables
> over a period of time.
> 
> Will some of the pg_dump table data be "out of sync"?
> 
> How exactly does pg_dump (if at all) handle transactions/table changes?

Pg_dump takes a snapshot of the database when it starts to the restore
will be constistent with the start time of pg_dump.  Good question.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Schemas vs. PostQUEL: resolving qualified identifiers
Next
From: Laurette Cisneros
Date:
Subject: Re: pg_dump question