Re: Dumping part (not all) of the data in a database...methods?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andrew Edson <cheighlund(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Dumping part (not all) of the data in a database...methods?
Date: 2007-04-11 20:52:31
Message-ID: 5031.1176324751@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Andrew Edson <cheighlund(at)yahoo(dot)com> writes:
> I am aware of this, yes, but the data in question is all (both sets) contained on a single table. That's why I was looking for a way to do a 'dump where (select foo where bar = 'criteria')' structure.

pg_dump is not in the business of editorializing on your data. However,
as of 8.2 there is COPY (SELECT ...) TO ... which might serve your
purpose. If you're on an older release I think it's temporary table time.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Chris Fischer 2007-04-11 20:52:37 Re: SQL - finding next date
Previous Message Jon Sime 2007-04-11 20:15:13 Re: SQL - finding next date