Re: pg_dumpall ignores --globals-only

From: Oliver Elphick <olly(at)lfix(dot)co(dot)uk>
To: Dan Langille <dan(at)langille(dot)org>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: pg_dumpall ignores --globals-only
Date: 2003-03-06 22:14:59
Message-ID: 1046988899.1313.10.camel@linda.lfix.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Thu, 2003-03-06 at 19:25, Dan Langille wrote:
> Hi folks...
>
> Can anyone else confirm this on 7.3.2?
>
> $ pg_dumpall --globals_only

In fact it should be "globals-only" (hyphen, not underscore), but even
when spelt correctly it doesn't work.

> pg_dumpall: unrecognized option `--globals_only'
> Try 'pg_dumpall --help' for more information.
>
> -g works OK.
>
> I seem to recall this problem arising before. I've had confirmation
> that the problem exists in 7.3.

It doesn't work in 7.3.2. It doesn't work in CVS tip either.
pg_dumpall.c needs an extra line in the long arguments definition:

RCS file: /projects/cvsroot/pgsql-server/src/bin/pg_dump/pg_dumpall.c,v
retrieving revision 1.14
diff -u -r1.14 pg_dumpall.c
--- pg_dumpall.c 2003/02/14 19:40:42 1.14
+++ pg_dumpall.c 2003/03/06 22:06:25
@@ -81,6 +81,7 @@
{"inserts", no_argument, NULL, 'd'},
{"attribute-inserts", no_argument, NULL, 'D'},
{"column-inserts", no_argument, NULL, 'D'},
+ {"globals-only", no_argument, NULL, 'g'},
{"host", required_argument, NULL, 'h'},
{"ignore-version", no_argument, NULL, 'i'},
{"oids", no_argument, NULL, 'o'},

--
Oliver Elphick Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight, UK http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
========================================
"The LORD is my light and my salvation; whom shall I
fear? the LORD is the strength of my life; of whom
shall I be afraid?" Psalms 27:1

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Bruce Momjian 2003-03-07 02:22:56 Re: client conx problems, 7.3.2
Previous Message Tom Lane 2003-03-06 21:49:48 Re: pg_dumpall ignores --globals-only