Re: Limiting records in pg_dump

From: John R Pierce <pierce(at)hogranch(dot)com>
To: "Arnold, Sandra" <ArnoldS(at)osti(dot)gov>, pgsql-general(at)postgresql(dot)org
Subject: Re: Limiting records in pg_dump
Date: 2009-07-31 17:59:24
Message-ID: 4A7330FC.6070900@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Arnold, Sandra wrote:
> Is there a way to just dump records equal to a specific value using
> pg_dump? In Oracle, you can export data and use a WHERE clause and
> only pull a range of data. We currently use this in Oracle to load
> data sets in our Development database. As we move to PostgreSQL we
> will be wanting to do the same thing. If we cannot do it using the
> pg_dump command, I will need to find a work around.

you could create an alternate schema in your DB with VIEW's to your
database table(s) that filter it according to your requirements, then
pg_dump -n schemaname ....

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Arnold, Sandra 2009-07-31 18:31:46 Re: Limiting records in pg_dump
Previous Message Raymond O'Donnell 2009-07-31 17:45:58 Re: Limiting records in pg_dump