X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 7F3C030F8B8 for ; Tue, 24 Jun 2003 14:24:07 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 22140-09 for ; Tue, 24 Jun 2003 11:23:57 -0300 (ADT) Received: from mail1.ihs.com (mail1.ihs.com [170.207.70.222]) by svr1.postgresql.org (Postfix) with ESMTP id 7C80930F7BC for ; Tue, 24 Jun 2003 11:23:56 -0300 (ADT) Received: from css120.ihs.com (css120.ihs.com [170.207.105.120]) by mail1.ihs.com (8.12.9/8.12.9) with ESMTP id h5OENcEZ006554; Tue, 24 Jun 2003 08:23:38 -0600 (MDT) Date: Tue, 24 Jun 2003 08:21:28 -0600 (MDT) From: "scott.marlowe" To: Michiel Lange Cc: Subject: Re: locking all databases In-Reply-To: <5.1.0.14.0.20030624084130.00b8edb0@192.168.1.3> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-MailScanner: Found to be clean X-MailScanner-SpamCheck: X-Archive-Number: 200306/289 X-Sequence-Number: 9280 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.