It should be \copy . This is a psql command; if you have direct access to database host machine, you might want to use the SQL command COPY for it's performance.
On 2009-06-09, Jyoti Seth <jyotiseth2001@gmail.com> wrote: > This is a multipart message in MIME format. > > ------=_NextPart_000_003C_01C9E916.43A8D460 > Content-Type: text/plain; > charset="us-ascii" > Content-Transfer-Encoding: 7bit > > Hi all, > > > > Can we take backup of specific data of a table (using where clause)?
in psql:
/copy (select * from table WHERE condition ) to 'FILENAME'