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

Re: pg_dump feature patch to allow selection of rows to

From: Neil Conway <neilc(at)samurai(dot)com>
To: Seth Robertson <in-postgres(at)baka(dot)org>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: pg_dump feature patch to allow selection of rows to
Date: 2005-09-12 18:29:19
Message-ID: 4325C8FF.3000301@samurai.com (view raw or flat)
Thread:
Lists: pgsql-patches
Seth Robertson wrote:
> In order to support some automation, I needed the ability to pull out
> subsets of postgres tables in a format which could be loaded into
> other postgres databases.

One alternative would be using CREATE TABLE AS to create a separate 
table containing the desired subset, and then using pg_dump to dump that 
table.

> Instead of writing a utility to replicate the functionality in
> pg_dump, I created a new flag, --where, which allows you to postpend
> where (or order or limit or whatever) sql fragments at the end of the
> select done by pg_dump.

Neat, but IMHO too much of a kludge for mainline.

-Neil

In response to

Responses

pgsql-patches by date

Next:From: Neil ConwayDate: 2005-09-12 18:52:28
Subject: Re: SPI_getbinval() documentation correction
Previous:From: Neil ConwayDate: 2005-09-12 18:23:22
Subject: Re: [PATCHES] Clarifying Autovacuum docs in the release notes

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