Re: dumping strategy

From: Neil Conway <nconway(at)klamath(dot)dyndns(dot)org>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: dumping strategy
Date: 2001-05-31 21:08:16
Message-ID: 20010531170816.A181@klamath.dyndns.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, May 31, 2001 at 11:49:48AM +0100, Richard Huxton wrote:
> From: <newsreader(at)mediaone(dot)net>
> > pg_dump works but I have to write
> > a shell script to dump each individual tables.
> >
> > What I meant by it does not work is like this
> >
> > pg_dump -t table1 table2 table3 database |bzip2 > database.du
>
> It's just
>
> for i in t1 t2 t3; do pg_dump -t$i mydb > $i.tbl; done

Although with a strategy like this, they're no guarantee that the
snapshot you get will be consistent. And if you're using refential
integrity it might not even restore properly.

Cheers,

Neil

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2001-05-31 21:10:20 Re: Postgres docs in .chm format --- is this possible?
Previous Message Lamar Owen 2001-05-31 21:04:46 Re: Compiling to RPM setup/filesystem layout