Re: Adding WHERE clause to pg_dump - Mailing list pgsql-hackers

From Simon Riggs
Subject Re: Adding WHERE clause to pg_dump
Date
Msg-id 1217022994.3894.1049.camel@ebony.2ndQuadrant
Whole thread Raw
In response to Re: Adding WHERE clause to pg_dump  ("Joshua D. Drake" <jd@commandprompt.com>)
List pgsql-hackers
On Fri, 2008-07-25 at 14:29 -0700, Joshua D. Drake wrote:
> 
> >  - users could make partial dumps and be confused and lose data.
> > 
> >       Yes, but they can already do that with -n, -t, and the new
> pre-data
> >       and post-data switches. This is one more case where the
> default is
> >       a full dump but you one can specificly request less.
> 
> No they actually can't. You are guaranteed that regardless of a -n or
> -t
> flag that the data you receive is consistent. You can't guarantee that
> with -w because you could pull different data based on an arbitrary
> conditional that can not apply to all objects.

But are you guaranteed that you have all tables in FK relationships? No.
(But I like that capability also - its useful).

-- Simon Riggs           www.2ndQuadrant.comPostgreSQL Training, Services and Support



pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Adding WHERE clause to pg_dump
Next
From: Davy Durham
Date:
Subject: Re: Adding WHERE clause to pg_dump