Avoid code duplication in \crosstabview.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 9603a32594d2f5e6d9a1f098bc554a68f44ccb3c
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2016-04-17T15:37:58Z
Releases: 9.6.0
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.

Files

PathChange+/−
src/bin/psql/crosstabview.c modified +3 −27
src/bin/psql/psqlscanslash.h modified +2 −0
src/bin/psql/psqlscanslash.l modified +51 −33