From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@postgresql.org
Subject: pgsql: Rethink \crosstabview's argument parsing logic.
Date: Fri, 15 Apr 2016 02:54:42 +0000
Message-ID: <E1aqtu6-0006DQ-2D@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
Rethink \crosstabview's argument parsing logic.
\crosstabview interpreted its arguments in an unusual way, including
doing case-insensitive matching of unquoted column names, which is
surely not the right thing. Rip that out in favor of doing something
equivalent to the dequoting/case-folding rules used by other psql
commands. To keep it simple, change the syntax so that the optional
sort column is specified as a separate argument, instead of the
also-quite-unusual syntax that attached it to the colH argument with
a colon.
Also, rework the error messages to be closer to project style.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/6f0d6a507889d94a79c0d18577a0cb1ccc2b6815
Modified Files
--------------
doc/src/sgml/ref/psql-ref.sgml | 30 +--
src/bin/psql/command.c | 10 +-
src/bin/psql/common.c | 17 +-
src/bin/psql/crosstabview.c | 326 ++++++++--------------------
src/bin/psql/settings.h | 4 +-
src/test/regress/expected/psql_crosstab.out | 38 +++-
src/test/regress/sql/psql_crosstab.sql | 22 +-
7 files changed, 156 insertions(+), 291 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us
Subject: Re: pgsql: Rethink \crosstabview's argument parsing logic.
In-Reply-To: <E1aqtu6-0006DQ-2D@gemulon.postgresql.org>
References: <E1aqtu6-0006DQ-2D@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox