Skip site navigation (1) Skip section navigation (2)

Re: Adding WHERE clause to pg_dump

From: Simon Riggs <simon(at)2ndquadrant(dot)com>
To: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
Cc: daveg <daveg(at)sonic(dot)net>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>, pubaddr5(at)davyandbeth(dot)com
Subject: Re: Adding WHERE clause to pg_dump
Date: 2008-07-25 21:56:34
Message-ID: 1217022994.3894.1049.camel@ebony.2ndQuadrant (view raw, whole thread or download thread mbox)
Lists: 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 
 PostgreSQL Training, Services and Support

In response to

pgsql-hackers by date

Next:From: Gregory StarkDate: 2008-07-25 22:10:54
Subject: Re: Research/Implementation of Nested Loop Join optimization
Previous:From: Davy DurhamDate: 2008-07-25 21:46:59
Subject: Re: Adding WHERE clause to pg_dump

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group