X-Original-To: pgsql-admin@postgresql.org Received: from shield.pirmabanka.lv (unknown [195.114.57.4]) by postgresql.org (Postfix) with ESMTP id 3ED7B475AE5 for ; Mon, 17 Mar 2003 10:26:40 -0500 (EST) Received: from wall2.pirmabanka.lv (wall2-pub.pirmabanka.lv [195.114.57.14]) by shield.pirmabanka.lv (8.12.8/8.9.3) with SMTP id h2HFQhpn013149 for ; Mon, 17 Mar 2003 17:26:43 +0200 Received: from share.pirmabanka.lv ([10.0.0.10]) by wall2.pirmabanka.lv; Mon, 17 Mar 2003 17:26:42 +0200 (EET) Received: from pc311x1.pirmabanka.lv (localhost.localdomain [127.0.0.1]) by pirmabanka.lv (8.11.6/8.11.6) with SMTP id h2HFQgk19651 for ; Mon, 17 Mar 2003 17:26:42 +0200 Received: (qmail 12651 invoked by uid 100); 17 Mar 2003 15:27:37 -0000 Date: Mon, 17 Mar 2003 17:27:37 +0200 From: Victor Yegorov To: pgsql-admin@postgresql.org Subject: Re: DB archiving Message-ID: <20030317152737.GA12646@pirmabanka.lv> Mail-Followup-To: pgsql-admin@postgresql.org References: <20030317103331.GM7181@pirmabanka.lv> <1047912320.23066.1281.camel@camel> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="envbJBWh7q8WU6mo" Content-Disposition: inline In-Reply-To: <1047912320.23066.1281.camel@camel> User-Agent: Mutt/1.4i X-Archive-Number: 200303/260 X-Sequence-Number: 7900 --envbJBWh7q8WU6mo Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Robert Treat [17.03.2003 16:49]: > This is exactly the way pg_dump works. Essentially when you pg_dump, you > get a "snapshot" of your database at the moment you start pg_dump. While > other transaction can be occuring during your dump, the dump wont see > them thanks to MVCC. >=20 I see, thank you. One more thing. I still cannot find any info on HOW pg_dump locks data it is going to backup. Is this described somewhere in the manual? (I've found nothing neither in "Concurency Control" nor in pg_dump description). What I'd like is to understand the algorithm. I know how backuping is realized in ORACLE, and I'm sure there, that when I start it, lock is set on entire tablespace (it's put in readonly mode), so I'm shure, that nothing will get there. In PostgreSQL I don't know how lock is aquired. I'm trying to avoid situations, like (assumption): lock is aquired on 'per table' level and while first table in the list is locked, last one is being updated, so - my db won't be consistent after backup. Thanks in advance. --=20 Victor Yegorov --envbJBWh7q8WU6mo Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+delp2RKGLEykUDYRAkrtAJ0eiovhTRVGrnzzVcspJbtB+MaxWwCfTa8Y yAdwQZOJrjNemWHk3jFerEo= =m7pq -----END PGP SIGNATURE----- --envbJBWh7q8WU6mo--