Re: Backup of multiple tables

From: "Alexander M(dot) Pravking" <fduch(at)antar(dot)bryansk(dot)ru>
To: Andreas Joseph Krogh <andreak(at)officenet(dot)no>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Backup of multiple tables
Date: 2003-09-19 14:50:32
Message-ID: 20030919145032.GB71229@dyatel.antar.bryansk.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Fri, Sep 19, 2003 at 04:30:57PM +0200, Andreas Joseph Krogh wrote:
> > Here's a perl script I used to dump all the tables separately.
> > I'm not sure most of options do work there, I didn't test ;-)
> > It won't be hard to make it dump certain tables, I think.
>
> Thanks for your suggestion, but the problem with it is that I may end up with
> inconsistencies if data is inserted/updated or deleted in one of the tables
> during the backup, so I would miss the "snapshot"-effect.

You can try to explicitly lock all tables being dumped from the
script before and release them after dump is complete...
But there could be dead-lock conditions.

What will gurus say?

--
Fduch M. Pravking

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message scott.marlowe 2003-09-19 15:37:23 Re: virus warning
Previous Message Alexander M. Pravking 2003-09-19 14:19:17 Re: Backup of multiple tables