Re: postgres --help-config - Mailing list pgsql-hackers

From Fernando Nasser
Subject Re: postgres --help-config
Date
Msg-id 3F8D661E.2040900@redhat.com
Whole thread Raw
In response to Re: postgres --help-config  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: postgres --help-config
List pgsql-hackers
Bruce Momjian wrote:
> 
(...)
> I guess iff someone needs raw with headers in the future, I guess we
> could add --help-config-raw-headers.
> 

I don't mind if you make it always with the headers.  We can easily 
strip the first line when reading the file and people can easily strip 
it piping the output through a filter before sorting it etc.

I am thinking that the headers would allow a output formatting utility 
to do it in a way that is independent of the version, and avoid having 
to run "pg_config --version" as well.  As the values are all strings it 
can blindly create a column for every header.  The only fields that the 
program need to know about (like name and group) are not likely to change.

No big deal though.

-- 
Fernando Nasser
Red Hat Canada Ltd.                     E-Mail:  fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario   M4P 2C9



pgsql-hackers by date:

Previous
From: Fernando Nasser
Date:
Subject: Re: postgres --help-config
Next
From: Christopher Kings-Lynne
Date:
Subject: pg_dump doesn't dump conversions?