| From: | Dave Page <dpage(at)postgresql(dot)org> |
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | pgsql-patches(at)postgresql(dot)org |
| Subject: | Re: Allow dumping of roles or tablespaces |
| Date: | 2007-01-15 09:14:56 |
| Message-ID: | 45AB4610.9020401@postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-patches |
Tom Lane wrote:
> Dave Page <dpage(at)postgresql(dot)org> writes:
>> pg_dumpall -g -- Dump roles and tablespaces per current behaviour
>> pg_dumpall -gr -- Dump roles only (or users and groups)
>> pg_dumpall -gt -- Dump tablespaces only
>
> This seems a bit ugly, mainly because (1) it doesn't have a natural
> translation to long-form switches, and (2) it screws up the usual
> habit of merging multiple single-letter switches into one argument.
> Perhaps something like
>
> --roles-only
> --tablespaces-only
> --globals-only
>
> Not sure if there are free single-letter codes for the first two,
> but on the whole I'm more interested in having sane long-form names
> than sane short ones ...
Revised patch attached - it now has
-r --roles-only
-t --tablespaces-only
-g --globals-only
Regards, Dave.
| Attachment | Content-Type | Size |
|---|---|---|
| pg_dumpall_global_objects2.diff | text/plain | 8.4 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Magnus Hagander | 2007-01-15 09:16:30 | Re: O_DIRECT support for Windows |
| Previous Message | ITAGAKI Takahiro | 2007-01-15 08:36:09 | O_DIRECT support for Windows |