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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-patches by date

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