\copy only select rows

From: Ow Mun Heng <Ow(dot)Mun(dot)Heng(at)wdc(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: \copy only select rows
Date: 2007-08-30 06:59:06
Message-ID: 1188457146.18203.51.camel@neuromancer.home.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Is there a way to do a dump of a database using a select statement?

eg: \copy trd to 'file' select * from table limit 10

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Patryk Kordylewski 2007-08-30 07:00:08 Re: ERROR: table row type and query-specified row type do not match
Previous Message Max Zorloff 2007-08-30 06:40:32 Re: Shared memory usage