Re: pg_dump a specific schema - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: pg_dump a specific schema
Date
Msg-id 200301101832.h0AIWu500526@candle.pha.pa.us
Whole thread Raw
In response to pg_dump a specific schema  (Neil Conway <neilc@samurai.com>)
Responses Re: pg_dump a specific schema  (Neil Conway <neilc@samurai.com>)
List pgsql-patches
Neil Conway wrote:
> This patch allows pg_dump to dump the contents of a specific schema, and
> updates the documentation for pg_dump.
>
> I used the '-n' and '--namespace' command-line arguments. I did some
> limited testing and it seems to work fine, but there may be some bugs
> lurking in it...
>
> BTW, If the user specifies a non-existent namespace, what should pg_dump
> do? ISTM that printing an error message and aborting the dump is
> probably best, but presently non-existent namespaces are ignored, since
> -t follows a similar policy. Should we change both of these?

I can't think of any logic that would allow a table to be skipped on a
dump, same with namespaces.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-patches by date:

Previous
From: Neil Conway
Date:
Subject: pg_dump a specific schema
Next
From: Neil Conway
Date:
Subject: Re: pg_dump a specific schema