@@ -418,6 +418,8 @@ SELECT gin_debug_query_path_value('#:(x=1) AND %:(y=1) AND *:(z=1)');
418418SELECT gin_debug_query_path_value(' #:(NOT x=1) AND %:(NOT y=1) AND *:(NOT z=1)' );
419419SELECT gin_debug_query_path_value(' NOT #:(NOT x=1) AND NOT %:(NOT y=1) AND NOT *:(NOT z=1)' );
420420SELECT gin_debug_query_path_value(' $ = true' );
421+ SELECT gin_debug_query_path_value(' $ . ? (review_votes > 10) . review_rating < 7' );
422+ SELECT gin_debug_query_path_value(' similar_product_ids . ? (# = "B0002W4TL2") . $' );
421423
422424SELECT 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' );
423425SELECT gin_debug_query_value_path(' NOT #(x=1) and NOT *(y=1) and NOT %(z=1)' );
@@ -445,7 +447,9 @@ SELECT gin_debug_query_value_path('NOT #:(NOT x=1) AND NOT %:(NOT y=1) AND NOT *
445447SELECT gin_debug_query_value_path(' (@# > 0 and #: = 16)' );
446448SELECT gin_debug_query_value_path(' *.@# ($ = 4 or $ = 2)' );
447449SELECT gin_debug_query_value_path(' tags.#.term. ? ( # = "NYC").x > 0' );
448- SELECT gin_debug_query_path_value(' $ = true' );
450+ SELECT gin_debug_query_value_path(' $ = true' );
451+ SELECT gin_debug_query_value_path(' $ . ? (review_votes > 10) . review_rating < 7' );
452+ SELECT gin_debug_query_value_path(' similar_product_ids . ? (# = "B0002W4TL2") . $' );
449453
450454-- -table and index
451455
@@ -497,6 +501,8 @@ select count(*) from test_jsquery where v @@ '$ = false';
497501select count (* )from test_jsquerywhere v @@' t' ;
498502select count (* )from test_jsquerywhere v @@' $' ;
499503select count (* )from test_jsquerywhere v @@' similar_product_ids.#' ;
504+ select count (* )from test_jsquerywhere v @@' $ . ? (review_votes > 10) . review_rating < 7' ;
505+ select count (* )from test_jsquerywhere v @@' similar_product_ids . ? (# = "B0002W4TL2") . $' ;
500506
501507select vfrom test_jsquerywhere v @@' array <@ [2,3]' order by v;
502508select vfrom test_jsquerywhere v @@' array && [2,3]' order by v;
@@ -546,6 +552,8 @@ select count(*) from test_jsquery where v @@ '$ = false';
546552select count (* )from test_jsquerywhere v @@' t' ;
547553select count (* )from test_jsquerywhere v @@' $' ;
548554select count (* )from test_jsquerywhere v @@' similar_product_ids.#' ;
555+ select count (* )from test_jsquerywhere v @@' $ . ? (review_votes > 10) . review_rating < 7' ;
556+ select count (* )from test_jsquerywhere v @@' similar_product_ids . ? (# = "B0002W4TL2") . $' ;
549557
550558explain (costs off)select vfrom test_jsquerywhere v @@' array <@ [2,3]' order by v;
551559explain (costs off)select vfrom test_jsquerywhere v @@' array && [2,3]' order by v;
@@ -602,6 +610,8 @@ select count(*) from test_jsquery where v @@ '$ = false';
602610select count (* )from test_jsquerywhere v @@' t' ;
603611select count (* )from test_jsquerywhere v @@' $' ;
604612select count (* )from test_jsquerywhere v @@' similar_product_ids.#' ;
613+ select count (* )from test_jsquerywhere v @@' $ . ? (review_votes > 10) . review_rating < 7' ;
614+ select count (* )from test_jsquerywhere v @@' similar_product_ids . ? (# = "B0002W4TL2") . $' ;
605615
606616explain (costs off)select vfrom test_jsquerywhere v @@' array <@ [2,3]' order by v;
607617explain (costs off)select vfrom test_jsquerywhere v @@' array && [2,3]' order by v;