Re: pg_dump a specific schema

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Neil Conway <neilc(at)samurai(dot)com>
Cc: PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: pg_dump a specific schema
Date: 2003-01-10 18:32:56
Message-ID: 200301101832.h0AIWu500526@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Ron Peterson 2003-01-10 18:46:31 Re: noupcol code cleanup
Previous Message Neil Conway 2003-01-10 18:30:17 pg_dump a specific schema