Re: bug in on_error_rollback !? - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: bug in on_error_rollback !?
Date
Msg-id 200610271849.34909.peter_e@gmx.net
Whole thread Raw
In response to Re: bug in on_error_rollback !?  ("Gurjeet Singh" <singh.gurjeet@gmail.com>)
Responses Re: bug in on_error_rollback !?  ("Gurjeet Singh" <singh.gurjeet@gmail.com>)
List pgsql-hackers
Gurjeet Singh wrote:
> \ds and \dS are commands (first token on the line) so it is
> acceptable that they be case-sensitive. But a command's
> parameters/arguments should not be case sensitive, unless quoted.

This distinction has not basis in SQL syntax.

> If it is documented that psql commands are case sensitive, then I
> would like to point to an ambiguity:

If it helps, compare this to ECPG: The C parts follow the syntax rules 
of C, the SQL parts follow the syntax rules of SQL.  In psql, the psql 
parts follow the syntax rules of psql, the SQL parts follow the syntax 
rules of SQL.  The syntax rules of psql in turn are inspired by Unix 
shells, sort of because psql is used that way.  (Surely one wouldn't 
want the argument to \i be case-insensitive?)

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [PATCHES] WAL logging freezing
Next
From: Jan Wieck
Date:
Subject: qsort->pg_qsort in 8.2