GIN support for @@ and @? jsonpath operators

Alexander Korotkov <akorotkov@postgresql.org>

Commit: 0a02e2ae0236103e641f6570b8135b7ee8a83686
Author: Alexander Korotkov <akorotkov@postgresql.org>
Date: 2019-04-01T15:08:52Z
Releases: 12.0
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

Documentation touched

Discussion

  • jsonpath 198 messages · 2018-01-07 → 2019-05-17