Re: Backup of multiple tables - Mailing list pgsql-sql

From Alexander M. Pravking
Subject Re: Backup of multiple tables
Date
Msg-id 20030919145032.GB71229@dyatel.antar.bryansk.ru
Whole thread Raw
In response to Backup of multiple tables  (Andreas Joseph Krogh <andreak@officenet.no>)
List 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


pgsql-sql by date:

Previous
From: "Alexander M. Pravking"
Date:
Subject: Re: Backup of multiple tables
Next
From: Tom Lane
Date:
Subject: Re: Backup of multiple tables