Re: pg_dump question

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Andreas Kretschmer <akretschmer(at)spamfence(dot)net>
Cc: pgsql-general(at)postgresql(dot)org, "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
Subject: Re: pg_dump question
Date: 2006-11-02 16:24:06
Message-ID: 20061102162406.GI25444@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Andreas Kretschmer wrote:
> Alvaro Herrera <alvherre(at)commandprompt(dot)com> schrieb:
> > > > I would like to use pg_dump to backup a list of tables to one file,
> > > > but it looks like
> > > > the -t option only supports one file. So, pg_dump gives you the
> > > > option of backing
> > > > up and entire database or one file, but nothing in between. Am I
> > > > missing something?
> > > > Is there a way to backup multiple tables (but not the whole database)?
> > >
> > > You can wait for 8.2, this version supports multiple -t - options.
> > > Or you can concat several table-dumps to one big dump.
> >
> > Note that the latter option does not guarantee that you get a consistent
> > dump.
>
> Yes, of course. Ref. integrity, for instance. But i don't know, how 8.2
> solve this problem. Can you explain this?

It dumps all tables in a single SERIALIZABLE transaction.

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2006-11-02 16:27:23 Re: DELETE performance issues
Previous Message Alvaro Herrera 2006-11-02 16:23:09 Re: lots of values for IN() clause