Search Postgresql Archives

Re: pg_dump question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Andreas Kretschmer wrote:
> Alvaro Herrera <alvherre@xxxxxxxxxxxxxxxxx> 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


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux