Skip site navigation (1) Skip section navigation (2)

Re: How to back up selected rows using

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "Piyush Lenka" <lenka(dot)piyush(at)gmail(dot)com>, <pgsql-admin(at)postgresql(dot)org>
Subject: Re: How to back up selected rows using
Date: 2012-03-12 14:27:37
Message-ID: 4F5DC18902000025000460F1@gw.wicourts.gov (view raw or flat)
Thread:
Lists: pgsql-admin
Piyush Lenka <lenka(dot)piyush(at)gmail(dot)com> wrote:
 
> How can i backup only 5 records from that table using pg_dump or psql
or
> both.
 
In psql:
 
\copy ( select * from that_table where ... ) to 'filename'
 
http://www.postgresql.org/docs/9.1/interactive/app-psql.html
 
Search the page for \copy
 
-Kevin

In response to

pgsql-admin by date

Next:From: Rural HunterDate: 2012-03-12 14:50:08
Subject: Re: triggers are not shared between parent and child tables?
Previous:From: Kevin GrittnerDate: 2012-03-12 14:11:16
Subject: Re: triggers are not shared between parent and child tables?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group