pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #9620: pg_dumpall -i --globals-only = wrong behaviour
2+ messages / 2 participants
[nested] [flat]

* BUG #9620: pg_dumpall -i --globals-only = wrong behaviour
@ 2014-03-18 10:31  postgresql@htmledit.com
  0 siblings, 1 reply; 2+ messages in thread

From: postgresql@htmledit.com @ 2014-03-18 10:31 UTC (permalink / raw)
  To: pgsql-bugs

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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: BUG #9620: pg_dumpall -i --globals-only = wrong behaviour
@ 2014-03-18 14:07  Tom Lane <tgl@sss.pgh.pa.us>
  parent: postgresql@htmledit.com
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2014-03-18 14:07 UTC (permalink / raw)
  To: postgresql@htmledit.com; +Cc: pgsql-bugs

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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2014-03-18 14:07 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-03-18 10:31 BUG #9620: pg_dumpall -i --globals-only = wrong behaviour postgresql@htmledit.com
2014-03-18 14:07 ` Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox