Re: Allow dumping of roles or tablespaces

Поиск
Список
Период
Сортировка
От Dave Page
Тема Re: Allow dumping of roles or tablespaces
Дата
Msg-id 45A7A976.5080307@postgresql.org
обсуждение исходный текст
Ответ на Re: Allow dumping of roles or tablespaces  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-patches
Andrew Dunstan wrote:
> Tom Lane wrote:
>> 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 ...
>>
>>
>>
>
> I agree. In fact, as I understand the patch it would also allow "-g r"
> and "-g t", and that seems ugly too.
>
> We don't have to have a short form for every long option - e.g. initdb
> has several like --no-locale for which there is no corresponding short
> form. I suggest we make the new options long form only, along the lines
> Tom suggests.

OK, no probs. I'll fix it up as Tom suggests.

Regards, Dave.

В списке pgsql-patches по дате отправления:

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: vcbuild - conditional regeneration
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Allow dumping of roles or tablespaces