From: | Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Chuck McDevitt <cmcdevitt(at)greenplum(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Solaris getopt_long and PostgreSQL |
Date: | 2009-04-06 06:28:56 |
Message-ID: | 1238999336.1387.7.camel@localhost |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Tom Lane píše v ne 05. 04. 2009 v 17:44 -0400:
> Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM> writes:
> > Zdenek Kotala píše v út 31. 03. 2009 v 21:25 +0200:
> >> Another possibility is to rewrite postgres(and pg_resetxlog) to use
> >> getopt_long() instead of getopt().
>
> > Attached patch rewrites postgres to use getopt_long instead of getopt.
>
> Actually, I fooled around with it last night and seem to have fixed it
> (buildfarm is all green today) by the expedient of not defining our own
> optind etc. variables if the system supplies them. So that seemed like
> a clean fix to me --- the old handling of optreset in particular was a
> huge kluge, whereas it's clear how this code is supposed to work.
Yeah, everything is green today. Thanks. Is it possible to backport it
at least to 8.3?
> I don't think we need to mess around with changing our option parsing
> logic, especially not to the extent that you propose here.
When previous solution works well on all platforms there is no reason to
use getopt_long.
Thanks Zdenek
From | Date | Subject | |
---|---|---|---|
Next Message | higepon | 2009-04-06 06:52:35 | Auto-delete large objects when referencing row is deleted |
Previous Message | Tom Lane | 2009-04-06 03:33:14 | Re: ALTER TABLE ... ALTER COLUMN ... SET DISTINCT |