GIN support for @@ and @? jsonpath operators
Alexander Korotkov <akorotkov@postgresql.org>
GIN support for @@ and @? jsonpath operators This commit makes existing GIN operator classes jsonb_ops and json_path_ops support "jsonb @@ jsonpath" and "jsonb @? jsonpath" operators. Basic idea is to extract statements of following form out of jsonpath. key1.key2. ... .keyN = const The rest of jsonpath is rechecked from heap. Catversion is bumped. Discussion: https://postgr.es/m/fcc6fc6a-b497-f39a-923d-aa34d0c588e8%402ndQuadrant.com Author: Nikita Glukhov, Alexander Korotkov Reviewed-by: Jonathan Katz, Pavel Stehule
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/gin.sgml | modified | +4 −0 |
| doc/src/sgml/json.sgml | modified | +18 −1 |
| src/backend/utils/adt/jsonb_gin.c | modified | +873 −75 |
| src/include/catalog/catversion.h | modified | +1 −1 |
| src/include/catalog/pg_amop.dat | modified | +12 −0 |
| src/include/utils/jsonb.h | modified | +3 −0 |
| src/include/utils/jsonpath.h | modified | +2 −0 |
| src/test/regress/expected/jsonb.out | modified | +453 −0 |
| src/test/regress/expected/opr_sanity.out | modified | +3 −1 |
| src/test/regress/sql/jsonb.sql | modified | +79 −0 |
| src/tools/pgindent/typedefs.list | modified | +8 −0 |
Documentation touched
Discussion
- jsonpath 198 messages · 2018-01-07 → 2019-05-17