From: scott.marlowe <scott.marlowe@ihs.com>
To: Michiel Lange <michiel@minas.demon.nl>
Cc: pgsql-admin@postgresql.org
Subject: Re: locking all databases
Date: Tue, 24 Jun 2003 08:21:28 -0600 (MDT)
Message-ID: <Pine.LNX.4.33.0306240818570.26701-100000@css120.ihs.com> (raw)
In-Reply-To: <5.1.0.14.0.20030624084130.00b8edb0@192.168.1.3>
On Tue, 24 Jun 2003, Michiel Lange wrote:
> Hello everybody,
>
> I wondered if it was possible to make all databases quiet for a while (e.g.
> for a dump) so there are no updates in any database during that time? But
> all transactions get into the before image, instead of being commited,
> until the quiet state is ended?
If you're worried about getting a consistent snapshot of an individual
database, don't. pg_dump snapshots the database at the point in time when
it starts a backup. Any transactions in progress will be wholly ignored
during the backup.
If you've got multiple databases that loosely tied together and therefore
you need to stop all transactions to ensure the data across those
databases are coherent, then you've got a bad design, but hey, who hasn't
had to deal with these things before.
anyway, you can edit the pg_hba.conf file to only allow connections on
something odd like local port 127.8.9.10 and then connect to that port for
the backups.
Mostly, it's not necessary to block access to get coherent backups, one of
the best features of postgresql, hot backups are free and they work very
well.
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: scott.marlowe@ihs.com, michiel@minas.demon.nl
Subject: Re: locking all databases
In-Reply-To: <Pine.LNX.4.33.0306240818570.26701-100000@css120.ihs.com>
References: <5.1.0.14.0.20030624084130.00b8edb0@192.168.1.3> <Pine.LNX.4.33.0306240818570.26701-100000@css120.ihs.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