@@ -308,6 +308,9 @@ SELECT gin_debug_query_path_value('x is string');
308308SELECT gin_debug_query_path_value(' x is numeric' );
309309SELECT gin_debug_query_path_value(' x is array' );
310310SELECT gin_debug_query_path_value(' x is object' );
311+ SELECT gin_debug_query_path_value(' #:(x=1) AND %:(y=1) AND *:(z=1)' );
312+ SELECT gin_debug_query_path_value(' #:(NOT x=1) AND %:(NOT y=1) AND *:(NOT z=1)' );
313+ SELECT gin_debug_query_path_value(' NOT #:(NOT x=1) AND NOT %:(NOT y=1) AND NOT *:(NOT z=1)' );
311314
312315SELECT gin_debug_query_value_path(' NOT NOT NOT x(y(NOT (a=1) and NOT (b=2)) OR NOT NOT (c=3)) and z = 5' );
313316SELECT gin_debug_query_value_path(' NOT #(x=1) and NOT *(y=1) and NOT %(z=1) ' );
@@ -329,6 +332,9 @@ SELECT gin_debug_query_value_path('x is string');
329332SELECT gin_debug_query_value_path(' x is numeric' );
330333SELECT gin_debug_query_value_path(' x is array' );
331334SELECT gin_debug_query_value_path(' x is object' );
335+ SELECT gin_debug_query_value_path(' #:(x=1) AND %:(y=1) AND *:(z=1)' );
336+ SELECT gin_debug_query_value_path(' #:(NOT x=1) AND %:(NOT y=1) AND *:(NOT z=1)' );
337+ SELECT gin_debug_query_value_path(' NOT #:(NOT x=1) AND NOT %:(NOT y=1) AND NOT *:(NOT z=1)' );
332338
333339-- -table and index
334340
@@ -367,6 +373,9 @@ select count(*) from test_jsquery where v @@ 't is string';
367373select count (* ) from test_jsquery where v @@ ' t is numeric' ;
368374select count (* ) from test_jsquery where v @@ ' t is array' ;
369375select count (* ) from test_jsquery where v @@ ' t is object' ;
376+ select count (* ) from test_jsquery where v @@ ' similar_product_ids.#: is numeric' ;
377+ select count (* ) from test_jsquery where v @@ ' similar_product_ids.#: is string' ;
378+ select count (* ) from test_jsquery where v @@ ' NOT similar_product_ids.#: (NOT $ = "0440180295")' ;
370379
371380select v from test_jsquery where v @@ ' array <@ [2,3]' order by v;
372381select v from test_jsquery where v @@ ' array && [2,3]' order by v;
@@ -403,6 +412,9 @@ select count(*) from test_jsquery where v @@ 't is string';
403412select count (* ) from test_jsquery where v @@ ' t is numeric' ;
404413select count (* ) from test_jsquery where v @@ ' t is array' ;
405414select count (* ) from test_jsquery where v @@ ' t is object' ;
415+ select count (* ) from test_jsquery where v @@ ' similar_product_ids.#: is numeric' ;
416+ select count (* ) from test_jsquery where v @@ ' similar_product_ids.#: is string' ;
417+ select count (* ) from test_jsquery where v @@ ' NOT similar_product_ids.#: (NOT $ = "0440180295")' ;
406418
407419explain (costs off) select v from test_jsquery where v @@ ' array <@ [2,3]' order by v;
408420explain (costs off) select v from test_jsquery where v @@ ' array && [2,3]' order by v;
@@ -446,6 +458,9 @@ select count(*) from test_jsquery where v @@ 't is string';
446458select count (* ) from test_jsquery where v @@ ' t is numeric' ;
447459select count (* ) from test_jsquery where v @@ ' t is array' ;
448460select count (* ) from test_jsquery where v @@ ' t is object' ;
461+ select count (* ) from test_jsquery where v @@ ' similar_product_ids.#: is numeric' ;
462+ select count (* ) from test_jsquery where v @@ ' similar_product_ids.#: is string' ;
463+ select count (* ) from test_jsquery where v @@ ' NOT similar_product_ids.#: (NOT $ = "0440180295")' ;
449464
450465explain (costs off) select v from test_jsquery where v @@ ' array <@ [2,3]' order by v;
451466explain (costs off) select v from test_jsquery where v @@ ' array && [2,3]' order by v;
0 commit comments