Re: Locking a database - Mailing list pgsql-general

From Lincoln Yeoh
Subject Re: Locking a database
Date
Msg-id 3.0.5.32.20010501223534.008b3790@192.228.128.13
Whole thread Raw
In response to Re: Locking a database  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
At 03:08 PM 4/30/01 -0400, Tom Lane wrote:
>"Jose Norberto" <nn_jose@hotmail.com> writes:
>> I want to make a pg_dump of a database, but I must be sure that no one is
>> logged in.
>
>Why?
>
>pg_dump will return a consistent state of the database even if other
>transactions are proceeding meanwhile.

Maybe it's a final dump before a db upgrade/swap.

The consistent database state must also be consistent with what the rest of
the world thinks.

e.g. no customers ordering stuff or users doing stuff that's left out in
the pg_dump.

Cheerio,
Link.


pgsql-general by date:

Previous
From: Fran Fabrizio
Date:
Subject: Multicolumn index - is there a limit?
Next
From: John Coers
Date:
Subject: Re: Copy