| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | pgsql-committers(at)postgresql(dot)org |
| Subject: | pgsql: Avoid code duplication in \crosstabview. |
| Date: | 2016-04-17 15:38:32 |
| Message-ID: | E1aromO-0005Er-12@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | David Steele | 2016-04-17 15:46:42 | Re: [HACKERS] Re: pgsql: Avoid extra locks in GetSnapshotData if old_snapshot_threshold < |
| Previous Message | Tom Lane | 2016-04-16 23:53:49 | pgsql: Adjust spin.c's spinlock emulation so that 0 is not a valid spin |