Re: Allow dumping of roles or tablespaces

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Dave Page <dpage(at)postgresql(dot)org>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: Allow dumping of roles or tablespaces
Date: 2007-01-12 15:05:49
Message-ID: 6824.1168614349@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

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 ...

regards, tom lane

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Andrew Dunstan 2007-01-12 15:24:42 Re: Allow dumping of roles or tablespaces
Previous Message Tom Lane 2007-01-12 14:52:57 Re: Corrupt database? 8.1/FreeBSD6.0