Re: [GENERAL] \copy only select rows

2007-08-30 Thread Ow Mun Heng
On Thu, 2007-08-30 at 09:14 +0200, A. Kretschmer wrote: > am Thu, dem 30.08.2007, um 14:59:06 +0800 mailte Ow Mun Heng folgendes: > > Is there a way to do a dump of a database using a select statement? > > A complete database or just a simple table? a simple table.. couple million records, want

Re: [GENERAL] \copy only select rows

2007-08-30 Thread A. Kretschmer
am Thu, dem 30.08.2007, um 14:59:06 +0800 mailte Ow Mun Heng folgendes: > Is there a way to do a dump of a database using a select statement? A complete database or just a simple table? > > eg: \copy trd to 'file' select * from table limit 10 Since 8.2 you can use COPY (select * from table) T