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

Re: Feature: give pg_dump a WHERE clause expression

From: David Fetter <david(at)fetter(dot)org>
To: Davy Durham <pubaddr5(at)davyandbeth(dot)com>
Cc: pgsql-patches(at)postgresql(dot)org, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: Feature: give pg_dump a WHERE clause expression
Date: 2008-06-02 10:12:36
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-patches
On Sun, Jun 01, 2008 at 02:08:47PM -0500, Davy Durham wrote:
> On Sun, 2008-06-01 at 10:43 -0400, Tom Lane wrote:
> > Davy Durham <pubaddr5(at)davyandbeth(dot)com> writes:
> > > I have added a new parameter, -w/--where=EXPR This lets you
> > > specify an expression that will be used in a WHERE clause when
> > > the data is dumped.
> > 
> > This seems pretty poorly thought out.  It can hardly work in a
> > dump of more than one table, which means that there's not any real
> > reason to use pg_dump at all.  Just do a COPY (SELECT ...) TO
> > somefile.
> Well, my primary reason for writing the patch was to have a standard
> SQL file using INSERT statements in order to load the some of a
> table's data into a database other than postgresql which does not
> support the COPY statement.  

Have you tried DBI-Link <>?

David Fetter <david(at)fetter(dot)org>
Phone: +1 415 235 3778  AIM: dfetter666  Yahoo!: dfetter
Skype: davidfetter      XMPP: david(dot)fetter(at)gmail(dot)com

Remember to vote!
Consider donating to Postgres:

In response to

pgsql-patches by date

Next:From: Jan UrbaƄskiDate: 2008-06-02 11:03:18
Subject: Re: extend VacAttrStats to allow stavalues of different types
Previous:From: Dawid KuroczkoDate: 2008-06-02 10:09:19
Subject: Re: [0/4] Proposal of SE-PostgreSQL patches

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