From: | Alexander Korotkov <akorotkov(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Get rid of jsonpath_gram.h and jsonpath_scanner.h |
Date: | 2019-03-20 08:13:51 |
Message-ID: | E1h6WMB-0007am-2c@gemulon.postgresql.org |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Get rid of jsonpath_gram.h and jsonpath_scanner.h
Jsonpath grammar and scanner are both quite small. It doesn't worth complexity
to compile them separately. This commit makes grammar and scanner be compiled
at once. Therefore, jsonpath_gram.h and jsonpath_gram.h are no longer needed.
This commit also does some reorganization of code in jsonpath_gram.y.
Discussion: https://postgr.es/m/d47b2023-3ecb-5f04-d253-d557547cf74f%402ndQuadrant.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/550b9d26f80fa3048f2d5883f0779ed29465960a
Modified Files
--------------
src/backend/Makefile | 13 +-
src/backend/utils/adt/.gitignore | 1 -
src/backend/utils/adt/Makefile | 21 +-
src/backend/utils/adt/jsonpath_gram.y | 485 ++++++++++++++++++----------------
src/backend/utils/adt/jsonpath_scan.l | 4 +-
src/include/Makefile | 4 +-
src/include/utils/.gitignore | 1 -
src/include/utils/jsonpath_scanner.h | 32 ---
src/tools/msvc/Solution.pm | 18 --
9 files changed, 268 insertions(+), 311 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Geoghegan | 2019-03-20 16:38:00 | pgsql: Refactor nbtree insertion scankeys. |
Previous Message | Alexander Korotkov | 2019-03-20 07:33:31 | pgsql: Remove ambiguity for jsonb_path_match() and jsonb_path_exists() |