Re: backup

From: "Jyoti Seth" <jyotiseth2001(at)gmail(dot)com>
To: "'Jasen Betts'" <jasen(at)xnet(dot)co(dot)nz>, <pgsql-sql(at)postgresql(dot)org>
Subject: Re: backup
Date: 2009-06-10 05:08:30
Message-ID: 001b01c9e989$821d7610$86586230$@com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

I tried using /copy command. It is not giving any error but also not
creating any file.

Thanks
Jyoti

-----Original Message-----
From: pgsql-sql-owner(at)postgresql(dot)org [mailto:pgsql-sql-owner(at)postgresql(dot)org]
On Behalf Of Jasen Betts
Sent: Tuesday, June 09, 2009 6:03 PM
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: [SQL] backup

On 2009-06-09, Jyoti Seth <jyotiseth2001(at)gmail(dot)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'

requires postgres version >= 8.2 IIRC.

you can use any query.

In response to

  • Re: backup at 2009-06-09 12:33:12 from Jasen Betts

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Jyoti Seth 2009-06-10 05:46:35 Re: backup
Previous Message Rob Sargent 2009-06-09 17:51:29 Taking the cache out of the equation?