Обсуждение: BUG #9620: pg_dumpall -i --globals-only = wrong behaviour

Поиск
Список
Период
Сортировка

BUG #9620: pg_dumpall -i --globals-only = wrong behaviour

От
postgresql@htmledit.com
Дата:
The following bug has been logged on the website:

Bug reference:      9620
Logged by:          Nicolas Payart
Email address:      postgresql@htmledit.com
PostgreSQL version: 9.3.3
Operating system:   Linux Debian 7.4
Description:

When using short option "-i" with option "--globals-only", pg_dumpall dumps
all databases (structure and data) instead of just global objects:

pg_dumpall -i --globals-only


Using long option "--ignore-version" with "--globals-only" is ok:

pg_dumpall --ignore-version --globals-only

This problem is present on my 9.3.3 instance and is not reproducible on
older versions (9.2.7 for example).

Re: BUG #9620: pg_dumpall -i --globals-only = wrong behaviour

От
Tom Lane
Дата:
postgresql@htmledit.com writes:
> When using short option "-i" with option "--globals-only", pg_dumpall dumps
> all databases (structure and data) instead of just global objects:
> pg_dumpall -i --globals-only

Huh.  Somebody typo'd the getopt() call so that it thinks -i takes an
argument, and thus proceeds to ignore the next word on the command line.
Will fix (unfortunately, this came too late for this week's releases).
Thanks for the report!

            regards, tom lane