Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit d590abf

Browse files
author
Nikita Glukhov
committed
Add jsonpath operators @*, @?, @~
1 parent 0f0abe3 commit d590abf

File tree

4 files changed

+989
-960
lines changed

4 files changed

+989
-960
lines changed

src/include/catalog/pg_operator.dat

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3195,5 +3195,16 @@
31953195
{ oid => '3287', descr => 'delete path',
31963196
oprname => '#-', oprleft => 'jsonb', oprright => '_text',
31973197
oprresult => 'jsonb', oprcode => 'jsonb_delete_path' },
3198+
{ oid => '6075', descr => 'jsonpath items',
3199+
oprname => '@*', oprleft => 'jsonb', oprright => 'jsonpath',
3200+
oprresult => 'jsonb', oprcode => '_jsonpath_query(jsonb,jsonpath)' },
3201+
{ oid => '6076', descr => 'jsonpath exists',
3202+
oprname => '@?', oprleft => 'jsonb', oprright => 'jsonpath',
3203+
oprresult => 'bool', oprcode => '_jsonpath_exists(jsonb,jsonpath)',
3204+
oprrest => 'contsel', oprjoin => 'contjoinsel' },
3205+
{ oid => '6107', descr => 'jsonpath predicate',
3206+
oprname => '@~', oprleft => 'jsonb', oprright => 'jsonpath',
3207+
oprresult => 'bool', oprcode => '_jsonpath_predicate(jsonb,jsonpath)',
3208+
oprrest => 'contsel', oprjoin => 'contjoinsel' },
31983209

31993210
]

src/include/catalog/pg_proc.dat

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9110,10 +9110,10 @@
91109110
{ oid => '6053', descr => 'I/O',
91119111
proname => 'jsonpath_out', prorettype => 'cstring', proargtypes => 'jsonpath',
91129112
prosrc => 'jsonpath_out' },
9113-
{ oid => '6054', descr => 'jsonpath exists test',
9113+
{ oid => '6054', descr => 'implementation of @? operator',
91149114
proname => '_jsonpath_exists', prorettype => 'bool',
91159115
proargtypes => 'jsonb jsonpath', prosrc => 'jsonb_jsonpath_exists2' },
9116-
{ oid => '6055', descr => 'jsonpath query',
9116+
{ oid => '6055', descr => 'implementation of @* operator',
91179117
proname => '_jsonpath_query', prorows => '1000', proretset => 't',
91189118
prorettype => 'jsonb', proargtypes => 'jsonb jsonpath',
91199119
prosrc => 'jsonb_jsonpath_query2' },
@@ -9124,7 +9124,7 @@
91249124
proname => '_jsonpath_query', prorows => '1000', proretset => 't',
91259125
prorettype => 'jsonb', proargtypes => 'jsonb jsonpath jsonb',
91269126
prosrc => 'jsonb_jsonpath_query3' },
9127-
{ oid => '6073', descr => 'jsonpath predicate test',
9127+
{ oid => '6073', descr => 'implementation of @~ operator',
91289128
proname => '_jsonpath_predicate', prorettype => 'bool',
91299129
proargtypes => 'jsonb jsonpath', prosrc => 'jsonb_jsonpath_predicate2' },
91309130
{ oid => '6074', descr => 'jsonpath predicate test',

0 commit comments

Comments
 (0)