Re: backup - Mailing list pgsql-sql

From Jasen Betts
Subject Re: backup
Date
Msg-id h0lkq8$90o$7@reversiblemaps.ath.cx
Whole thread Raw
In response to backup  ("Jyoti Seth" <jyotiseth2001@gmail.com>)
Responses Re: backup  ("Jyoti Seth" <jyotiseth2001@gmail.com>)
Re: backup  ("Jyoti Seth" <jyotiseth2001@gmail.com>)
List pgsql-sql
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'

requires postgres version >= 8.2 IIRC.

you can use any query.


pgsql-sql by date:

Previous
From: Ashish Karalkar
Date:
Subject: Re: backup
Next
From: Rob Sargent
Date:
Subject: Taking the cache out of the equation?