@@ -732,7 +732,7 @@ gin_extract_jsonb_value_path_internal(Jsonb *jb, int32 *nentries, uint32 **bloom
732732Datum
733733gin_extract_jsonb_value_path (PG_FUNCTION_ARGS )
734734{
735- Jsonb * jb = PG_GETARG_JSONB (0 );
735+ Jsonb * jb = PG_GETARG_JSONB_P (0 );
736736 int32 * nentries = (int32 * ) PG_GETARG_POINTER (1 );
737737
738738 PG_RETURN_POINTER (gin_extract_jsonb_value_path_internal (jb , nentries , NULL ));
@@ -770,12 +770,12 @@ gin_extract_jsonb_query_value_path(PG_FUNCTION_ARGS)
770770 switch (strategy )
771771 {
772772 case JsonbContainsStrategyNumber :
773- jb = PG_GETARG_JSONB (0 );
773+ jb = PG_GETARG_JSONB_P (0 );
774774 entries = gin_extract_jsonb_value_path_internal (jb , nentries , NULL );
775775 break ;
776776
777777 case JsonbNestedContainsStrategyNumber :
778- jb = PG_GETARG_JSONB (0 );
778+ jb = PG_GETARG_JSONB_P (0 );
779779 entries = gin_extract_jsonb_value_path_internal (jb , nentries , & bloom );
780780
781781 n = * nentries ;
@@ -867,7 +867,7 @@ gin_triconsistent_jsonb_value_path(PG_FUNCTION_ARGS)
867867{
868868 GinTernaryValue * check = (GinTernaryValue * ) PG_GETARG_POINTER (0 );
869869 StrategyNumber strategy = PG_GETARG_UINT16 (1 );
870- /* Jsonb *query = PG_GETARG_JSONB (2); */
870+ /* Jsonb *query = PG_GETARG_JSONB_P (2); */
871871 int32 nkeys = PG_GETARG_INT32 (3 );
872872 Pointer * extra_data = (Pointer * ) PG_GETARG_POINTER (4 );
873873 GinTernaryValue res = GIN_TRUE ;
@@ -1171,7 +1171,7 @@ gin_extract_jsonb_path_value_internal(Jsonb *jb, int32 *nentries)
11711171Datum
11721172gin_extract_jsonb_path_value (PG_FUNCTION_ARGS )
11731173{
1174- Jsonb * jb = PG_GETARG_JSONB (0 );
1174+ Jsonb * jb = PG_GETARG_JSONB_P (0 );
11751175 int32 * nentries = (int32 * ) PG_GETARG_POINTER (1 );
11761176
11771177 PG_RETURN_POINTER (gin_extract_jsonb_path_value_internal (jb , nentries ));
@@ -1209,7 +1209,7 @@ gin_extract_jsonb_query_path_value(PG_FUNCTION_ARGS)
12091209 switch (strategy )
12101210 {
12111211 case JsonbContainsStrategyNumber :
1212- jb = PG_GETARG_JSONB (0 );
1212+ jb = PG_GETARG_JSONB_P (0 );
12131213 entries = gin_extract_jsonb_path_value_internal (jb , nentries );
12141214 break ;
12151215
@@ -1250,7 +1250,7 @@ gin_consistent_jsonb_path_value(PG_FUNCTION_ARGS)
12501250{
12511251 bool * check = (bool * ) PG_GETARG_POINTER (0 );
12521252 StrategyNumber strategy = PG_GETARG_UINT16 (1 );
1253- /* Jsonb *query = PG_GETARG_JSONB (2); */
1253+ /* Jsonb *query = PG_GETARG_JSONB_P (2); */
12541254 int32 nkeys = PG_GETARG_INT32 (3 );
12551255 Pointer * extra_data = (Pointer * ) PG_GETARG_POINTER (4 );
12561256 bool * recheck = (bool * ) PG_GETARG_POINTER (5 );
@@ -1291,7 +1291,7 @@ gin_triconsistent_jsonb_path_value(PG_FUNCTION_ARGS)
12911291{
12921292 GinTernaryValue * check = (GinTernaryValue * ) PG_GETARG_POINTER (0 );
12931293 StrategyNumber strategy = PG_GETARG_UINT16 (1 );
1294- /* Jsonb *query = PG_GETARG_JSONB (2); */
1294+ /* Jsonb *query = PG_GETARG_JSONB_P (2); */
12951295 int32 nkeys = PG_GETARG_INT32 (3 );
12961296 Pointer * extra_data = (Pointer * ) PG_GETARG_POINTER (4 );
12971297 GinTernaryValue res = GIN_TRUE ;
0 commit comments