Re: db partial dumping with pg_dump - Mailing list pgsql-hackers

From Hannu Krosing
Subject Re: db partial dumping with pg_dump
Date
Msg-id 1029258014.4742.20.camel@rh72.home.ee
Whole thread Raw
In response to Re: db partial dumping with pg_dump  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: db partial dumping with pg_dump  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
On Tue, 2002-08-13 at 20:24, Tom Lane wrote:
> 
> What would seem to make sense is adding a WHERE-clause option to
> COPY TO, and then you could go
>     COPY table TO 'myfile' WHERE ...

What about :

COPY table TO 'myfile' [ WHERE cond ] [ AS INSERT [ WITH COLUMN ] ];

to get the data as INSERT INTO statements (pg_dump -d), with optional
column list (pg_dump -D)

----------------
Hannu



pgsql-hackers by date:

Previous
From: Hannu Krosing
Date:
Subject: Re: Temporary Views
Next
From: Bruce Momjian
Date:
Subject: Re: db partial dumping with pg_dump