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

Started by Nonameabout 12 years ago2 messagesbugs
Jump to latest
#1Noname
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).

--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Noname (#1)
Re: BUG #9620: pg_dumpall -i --globals-only = wrong behaviour

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

--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs