Re: [PATCHES] fix in --help output

2008-02-22 Thread Peter Eisentraut
Am Freitag, 22. Februar 2008 schrieb Zdenek Kotala: > Peter Eisentraut napsal(a): > > Zdenek Kotala wrote: > >> However, I get following error on Solaris: > >> > >> bash-3.2$ /usr/postgres/8.2/bin/postgres -D /tmp/db > >> --share_buffers=16000 /usr/postgres/8.2/bin/postgres: illegal option -- > >>

Re: [PATCHES] fix in --help output

2008-02-22 Thread Zdenek Kotala
Alvaro Herrera napsal(a): Zdenek Kotala wrote: If I looked correctly there is no getopt_long. There is only getopt with - as a option. See PostmasterMain: while ((opt = getopt(argc, argv, "A:B:c:D:d:EeFf:h:ijk:lN:nOo:Pp:r:S:sTt:W:-:")) != -1) If I understand correctly the POSIX stand

Re: [PATCHES] fix in --help output

2008-02-22 Thread Zdenek Kotala
Peter Eisentraut napsal(a): Am Freitag, 22. Februar 2008 schrieb Zdenek Kotala: Peter Eisentraut napsal(a): Zdenek Kotala wrote: However, I get following error on Solaris: bash-3.2$ /usr/postgres/8.2/bin/postgres -D /tmp/db --share_buffers=16000 /usr/postgres/8.2/bin/postgres: illegal option

Re: [PATCHES] fix in --help output

2008-02-22 Thread Alvaro Herrera
Zdenek Kotala wrote: > Alvaro Herrera napsal(a): >> Hmm, right. Our current parsing of --long-opts is quite a hack, it >> seems :-( Having to list all GUC options in the getopt_long array would >> be a mess. Any other ideas? > > I attached patch which replaces any "--..." occurrence with "-c...

Re: [PATCHES] fix in --help output

2008-02-22 Thread Tom Lane
Zdenek Kotala <[EMAIL PROTECTED]> writes: > I attached patch which replaces any "--..." occurrence with "-c..." on > command line. Please see whether forcibly using src/port/getopt.c fixes this, instead. A saner patch would probably add something like this to configure.in: if test "$PORTNAME" =

Re: [PATCHES] fix in --help output

2008-02-22 Thread Zdenek Kotala
Ups. Patch attached Zdenek Zdenek Kotala napsal(a): Tom Lane napsal(a): Zdenek Kotala <[EMAIL PROTECTED]> writes: I attached patch which replaces any "--..." occurrence with "-c..." on command line. Please see whether forcibly using src/port/getopt.c fixes this, instead. A

Re: [PATCHES] fix in --help output

2008-02-22 Thread Zdenek Kotala
Tom Lane napsal(a): Zdenek Kotala <[EMAIL PROTECTED]> writes: I attached patch which replaces any "--..." occurrence with "-c..." on command line. Please see whether forcibly using src/port/getopt.c fixes this, instead. A saner patch would probably add something like this to configure.in: if