pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexander M. Pravking <fduch@antar.bryansk.ru>
To: Andreas Joseph Krogh <andreak@officenet.no>
Cc: pgsql-sql@postgresql.org
Subject: Re: Backup of multiple tables
Date: Fri, 19 Sep 2003 18:50:32 +0400
Message-ID: <20030919145032.GB71229@dyatel.antar.bryansk.ru> (raw)
In-Reply-To: <200309191630.57532.andreak@officenet.no>
References: <200309191354.06071.andreak@officenet.no>
	<20030919141917.GA71229@dyatel.antar.bryansk.ru>
	<200309191630.57532.andreak@officenet.no>

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



view thread (7+ messages)  latest in thread

Message-ID: <20030919145032.GB71229@dyatel.antar.bryansk.ru>
Permalink:  ../20030919145032.GB71229@dyatel.antar.bryansk.ru/
Also on:    postgresql.org/message-id/20030919145032.GB71229@dyatel.antar.bryansk.ru

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: fduch@antar.bryansk.ru, andreak@officenet.no
  Subject: Re: Backup of multiple tables
  In-Reply-To: <20030919145032.GB71229@dyatel.antar.bryansk.ru>

* 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