From: | Neil Conway <neilc(at)samurai(dot)com> |
---|---|
To: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
Cc: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: -V, --version -- deprecated? |
Date: | 2004-11-24 13:02:10 |
Message-ID: | 41A48652.3010506@samurai.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Peter Eisentraut wrote:
> --help and --version are the standard options that are supported
> everywhere. In the era before we had long options everywhere, we
> implemented -V as an alternative in some programs, in particular those
> in and around initdb, because of the version cross-checking it does
> using those options.
Ok, good to know. FWIW "-V" is almost universal among the client
binaries (not just those "in and around initdb").
> At one point, long options where broken on some BSD versions. I don't
> know what became of that, but if we don't have new information it might
> be safest to leave things where they are.
Can anyone confirm this? (If this actually affects any modern platforms
it means that "--help" doesn't work at the very least, which seems a Bad
Thing. So I'm a little skeptical that this is still a problem.)
> Hence, the -V option is not the preferred public interface, so it's not
> prominently documented, which may or may not be reasonable in minds
> other than my own.
Fair enough, but I think it's inconsistent to document it in some places
but not in others. I think we ought to either declare "-V" deprecated
(and perhaps remove the docs for it), or accept that we need to live
with it because of long-options silliness and document "-V" as a valid
alternate.
-Neil
From | Date | Subject | |
---|---|---|---|
Next Message | Matt | 2004-11-24 13:11:59 | Re: patch: plpgsql - access records with rec.(expr) |
Previous Message | Neil Conway | 2004-11-24 12:52:11 | Re: lwlocks and starvation |