Thread: pgsql: Avoid code duplication in \crosstabview.

pgsql: Avoid code duplication in \crosstabview.

From
Tom Lane
Date:
Avoid code duplication in \crosstabview.

In commit 6f0d6a507 I added a duplicate copy of psqlscanslash's identifier
downcasing code, but actually it's not hard to split that out as a callable
subroutine and avoid the duplication.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/9603a32594d2f5e6d9a1f098bc554a68f44ccb3c

Modified Files
--------------
src/bin/psql/crosstabview.c  | 30 ++--------------
src/bin/psql/psqlscanslash.h |  2 ++
src/bin/psql/psqlscanslash.l | 84 +++++++++++++++++++++++++++-----------------
3 files changed, 56 insertions(+), 60 deletions(-)