I just tried with current CVS and got:
$ aspg pg_dump --someoptionthatdoesntexist somedb
pg_dump: unrecognized option `--someoptionthatdoesntexist'
Try 'pg_dump --help' for more information.
My guess is that there is something buggy with your libc getopt. Can
someone else reproduce this error?
---------------------------------------------------------------------------
pgsql-bugs@postgresql.org wrote:
> Menno Smits (menno@oxcoda.com) reports a bug with a severity of 3
> The lower the number the more severe it is.
>
> Short Description
> pg_dump segfaults when given an invalid command line option
>
> Long Description
> pg_dump crashes with a segmentation fault and dumps core when given an invalid command line option.
>
> Example:
> $ pg_dump --someoptionthatdoesntexist somedb
> Segmentation fault (core dumped)
>
> A core file is left behind.
>
> Version information:
> Postgresql version 7.2.1 on a Redhat 6.2 based system.
> Postgresql installed from RPMS built from the official SRPMS.
> (ie. rpm --rebuild postgresql-7.2.1-2PGDG.src.rpm)
>
> Sample Code
>
>
> No file was uploaded with this report
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
>
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026