Re: Uppercase tab completion keywords in psql?

From: Peter Geoghegan <peter(at)2ndquadrant(dot)com>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: Bruce Momjian <bruce(at)momjian(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Peter Eisentraut <peter_e(at)gmx(dot)net>
Subject: Re: Uppercase tab completion keywords in psql?
Date: 2012-03-23 15:35:25
Message-ID: CAEYLb_XTRPmAp7GgtQeB1cmMDNXwSKdDOJkyWJ0eNFSZLvbscw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 23 March 2012 15:13, Andrew Dunstan <andrew(at)dunslane(dot)net> wrote:
> Upper casing SQL keywords is a common style, which is used in lots of our
> code (e.g. regression tests, psql queries, pg_dump). I think the default
> should match what is in effect our house style, and what we have
> historically done.

The code doesn't give preferential treatment to lower-case code - it
merely puts it on an even footing. I would agree with your position if
the change assumed that the user always wanted to use lower-case SQL,
but it does not. Rather, it intelligently infers what the user wants.

--
Peter Geoghegan       http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training and Services

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2012-03-23 15:36:49 Re: [COMMITTERS] pgsql: Add notion of a "transform function" that can simplify function
Previous Message Alvaro Herrera 2012-03-23 15:32:22 Re: BUG #6510: A simple prompt is displayed using wrong charset