Re: pg_dump question

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Laurette Cisneros <laurette(at)nextbus(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: pg_dump question
Date: 2002-01-19 00:57:05
Message-ID: 200201190057.g0J0v5f10337@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Laurette Cisneros 2002-01-19 00:59:18 Re: pg_dump question
Previous Message Tom Lane 2002-01-19 00:29:43 Schemas vs. PostQUEL: resolving qualified identifiers