Re: Allow dumping of roles or tablespaces - Mailing list pgsql-patches

From Tom Lane
Subject Re: Allow dumping of roles or tablespaces
Date
Msg-id 6824.1168614349@sss.pgh.pa.us
Whole thread Raw
In response to Allow dumping of roles or tablespaces  (Dave Page <dpage@postgresql.org>)
Responses Re: Allow dumping of roles or tablespaces  (Andrew Dunstan <andrew@dunslane.net>)
Re: Allow dumping of roles or tablespaces  (Dave Page <dpage@postgresql.org>)
List pgsql-patches
Dave Page <dpage@postgresql.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 ...

            regards, tom lane

pgsql-patches by date:

Previous
From: Dave Page
Date:
Subject: Allow dumping of roles or tablespaces
Next
From: Andrew Dunstan
Date:
Subject: Re: Allow dumping of roles or tablespaces