From: | "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com> |
---|---|
To: | Simon Riggs <simon(at)2ndquadrant(dot)com> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Adding WHERE clause to pg_dump |
Date: | 2008-07-25 18:46:28 |
Message-ID: | 1217011588.16378.70.camel@jd-laptop |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Fri, 2008-07-25 at 19:33 +0100, Simon Riggs wrote:
> On Fri, 2008-07-25 at 13:31 -0400, Tom Lane wrote:
> > Simon Riggs <simon(at)2ndquadrant(dot)com> writes:
> > > Attached patch implements WHERE clauses for pg_dump.
> >
> > I still have serious reservations about adding such an ugly,
> > non-orthogonal wart to pg_dump. Why is it not appropriate to just
> > do a COPY (SELECT ...) TO STDOUT when you need this?
>
> So you can dump a coherent sample database in one command, not 207.
>
> Every user of PostgreSQL wants a dev/test database. If the database is
> large it isn't practical to take a complete copy. Nor is it practical to
> hand-write a data sampling extraction program and if you do, its usually
> imperfect in many ways.
>
> Adding this feature gives a very fast capability to create sample
> databases, or incremental backups for many cases.
Not sure I buy this argument. I am all for usability and I would be the
first to shout about the general ridiculousness of pg_dump/all/restore
but in this case I think Tom is right. This feature could easily be done
in a script without harassing pg_dump.
Sincerely,
Joshua D. Drake
--
The PostgreSQL Company since 1997: http://www.commandprompt.com/
PostgreSQL Community Conference: http://www.postgresqlconference.org/
United States PostgreSQL Association: http://www.postgresql.us/
Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate
From | Date | Subject | |
---|---|---|---|
Next Message | Manoel Henrique | 2008-07-25 19:05:30 | Re: Research/Implementation of Nested Loop Join optimization |
Previous Message | Simon Riggs | 2008-07-25 18:33:20 | Re: Adding WHERE clause to pg_dump |