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 --
> >>
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
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
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...
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" =
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
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