Re: fix in --help output

Поиск
Список
Период
Сортировка
Искать
От
Zdenek Kotala
Тема
Re: fix in --help output
Дата
Msg-id
47BF337F.6040807@sun.com
Ответ на
Список
Дерево обсуждения
fix in --help output Zdenek Kotala <Zdenek.Kotala@Sun.COM>
Re: fix in --help output Tom Lane <tgl@sss.pgh.pa.us>
Re: fix in --help output Zdenek Kotala <Zdenek.Kotala@Sun.COM>
Re: fix in --help output Alvaro Herrera <alvherre@commandprompt.com>
Re: fix in --help output Zdenek Kotala <Zdenek.Kotala@Sun.COM>
Re: fix in --help output Alvaro Herrera <alvherre@commandprompt.com>
Re: fix in --help output Zdenek Kotala <Zdenek.Kotala@Sun.COM>
Re: fix in --help output Alvaro Herrera <alvherre@commandprompt.com>
Re: fix in --help output Tom Lane <tgl@sss.pgh.pa.us>
Re: fix in --help output Zdenek Kotala <Zdenek.Kotala@Sun.COM>
Re: fix in --help output Zdenek Kotala <Zdenek.Kotala@Sun.COM>
Re: fix in --help output Bruce Momjian <bruce@momjian.us>
Re: fix in --help output Peter Eisentraut <peter_e@gmx.net>
Re: fix in --help output Zdenek Kotala <Zdenek.Kotala@Sun.COM>
Re: fix in --help output Peter Eisentraut <peter_e@gmx.net>
Re: fix in --help output Zdenek Kotala <Zdenek.Kotala@Sun.COM>
Re: fix in --help output Andrew Dunstan <andrew@dunslane.net>
Re: fix in --help output Zdenek Kotala <Zdenek.Kotala@Sun.COM>
Re: fix in --help output Peter Eisentraut <peter_e@gmx.net>
Tom Lane napsal(a):
> Zdenek Kotala  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" = "solaris"; then
> AC_LIBOBJ(getopt)
> AC_LIBOBJ(getopt_long)
> fi

Yeah, this is the best solution. I attach a patch. Is possible to 
backport it back to 8.3, 8.2?

Just for completeness Solaris getopt function has a extension which 
processes long option argument. This extension is called CLIP. This 
implementation collides with unusual getopt usage for long option 
processing in PostgreSQL.

More info are there:
http://docs.sun.com/app/docs/doc/819-2243/getopt-3c?l=en&a=view
http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/getopt.c
http://docs.sun.com/app/docs/doc/819-2239/6n4hsf6e5?l=en&a=view

By the way old solaris getopt version is similary with postgres 
implementation. :-)

http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libbc/libc/gen/common/getopt.c


		Thanks for help
				Zdenek
В списке pgsql-patches по дате отправления
От: Tom Lane
Дата:
Сообщение: Re: fix in --help output
От: Zdenek Kotala
Дата:
Сообщение: Re: fix in --help output
FAQ