[HACKERS] postgres long options without value

2012-04-04 Thread Peter Eisentraut
Every so often I find myself trying to write

postgres -D ... --ssl

or

postgres -D ... --debug-print-plan

which fails, because you need to write --ssl=on or
--debug-print-plan=true etc.

Have others had the same experience?  Would it be worth supporting the
case without value to default to on/true?



-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers


Re: [HACKERS] postgres long options without value

2012-04-04 Thread Euler Taveira
On 04-04-2012 17:07, Peter Eisentraut wrote:
 postgres -D ... --debug-print-plan
 
 which fails, because you need to write --ssl=on or
 --debug-print-plan=true etc.
 
 Have others had the same experience?  Would it be worth supporting the
 case without value to default to on/true?
 
Please, don't do it. You can be fooled when we change a parameter default
value (specially if you have it in a script that is used in different
versions) from major versions.


-- 
   Euler Taveira de Oliveira - Timbira   http://www.timbira.com.br/
   PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers