From: Victor Yegorov <viy@pirmabanka.lv>
To: pgsql-admin@postgresql.org
Subject: Re: DB archiving
Date: Mon, 17 Mar 2003 17:27:37 +0200
Message-ID: <20030317152737.GA12646@pirmabanka.lv> (raw)
In-Reply-To: <1047912320.23066.1281.camel@camel>
References: <20030317103331.GM7181@pirmabanka.lv>
<1047912320.23066.1281.camel@camel>
* Robert Treat <xzilla@users.sourceforge.net> [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.
>
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.
--
Victor Yegorov
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: viy@pirmabanka.lv
Subject: Re: DB archiving
In-Reply-To: <20030317152737.GA12646@pirmabanka.lv>
References: <20030317103331.GM7181@pirmabanka.lv> <1047912320.23066.1281.camel@camel> <20030317152737.GA12646@pirmabanka.lv>
* 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