@@ -732,7 +732,7 @@ gin_extract_jsonb_value_path_internal(Jsonb *jb, int32 *nentries, uint32 **bloom
732
732
Datum
733
733
gin_extract_jsonb_value_path (PG_FUNCTION_ARGS )
734
734
{
735
- Jsonb * jb = PG_GETARG_JSONB (0 );
735
+ Jsonb * jb = PG_GETARG_JSONB_P (0 );
736
736
int32 * nentries = (int32 * ) PG_GETARG_POINTER (1 );
737
737
738
738
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)
770
770
switch (strategy )
771
771
{
772
772
case JsonbContainsStrategyNumber :
773
- jb = PG_GETARG_JSONB (0 );
773
+ jb = PG_GETARG_JSONB_P (0 );
774
774
entries = gin_extract_jsonb_value_path_internal (jb , nentries , NULL );
775
775
break ;
776
776
777
777
case JsonbNestedContainsStrategyNumber :
778
- jb = PG_GETARG_JSONB (0 );
778
+ jb = PG_GETARG_JSONB_P (0 );
779
779
entries = gin_extract_jsonb_value_path_internal (jb , nentries , & bloom );
780
780
781
781
n = * nentries ;
@@ -867,7 +867,7 @@ gin_triconsistent_jsonb_value_path(PG_FUNCTION_ARGS)
867
867
{
868
868
GinTernaryValue * check = (GinTernaryValue * ) PG_GETARG_POINTER (0 );
869
869
StrategyNumber strategy = PG_GETARG_UINT16 (1 );
870
- /* Jsonb *query = PG_GETARG_JSONB (2); */
870
+ /* Jsonb *query = PG_GETARG_JSONB_P (2); */
871
871
int32 nkeys = PG_GETARG_INT32 (3 );
872
872
Pointer * extra_data = (Pointer * ) PG_GETARG_POINTER (4 );
873
873
GinTernaryValue res = GIN_TRUE ;
@@ -1171,7 +1171,7 @@ gin_extract_jsonb_path_value_internal(Jsonb *jb, int32 *nentries)
1171
1171
Datum
1172
1172
gin_extract_jsonb_path_value (PG_FUNCTION_ARGS )
1173
1173
{
1174
- Jsonb * jb = PG_GETARG_JSONB (0 );
1174
+ Jsonb * jb = PG_GETARG_JSONB_P (0 );
1175
1175
int32 * nentries = (int32 * ) PG_GETARG_POINTER (1 );
1176
1176
1177
1177
PG_RETURN_POINTER (gin_extract_jsonb_path_value_internal (jb , nentries ));
@@ -1209,7 +1209,7 @@ gin_extract_jsonb_query_path_value(PG_FUNCTION_ARGS)
1209
1209
switch (strategy )
1210
1210
{
1211
1211
case JsonbContainsStrategyNumber :
1212
- jb = PG_GETARG_JSONB (0 );
1212
+ jb = PG_GETARG_JSONB_P (0 );
1213
1213
entries = gin_extract_jsonb_path_value_internal (jb , nentries );
1214
1214
break ;
1215
1215
@@ -1250,7 +1250,7 @@ gin_consistent_jsonb_path_value(PG_FUNCTION_ARGS)
1250
1250
{
1251
1251
bool * check = (bool * ) PG_GETARG_POINTER (0 );
1252
1252
StrategyNumber strategy = PG_GETARG_UINT16 (1 );
1253
- /* Jsonb *query = PG_GETARG_JSONB (2); */
1253
+ /* Jsonb *query = PG_GETARG_JSONB_P (2); */
1254
1254
int32 nkeys = PG_GETARG_INT32 (3 );
1255
1255
Pointer * extra_data = (Pointer * ) PG_GETARG_POINTER (4 );
1256
1256
bool * recheck = (bool * ) PG_GETARG_POINTER (5 );
@@ -1291,7 +1291,7 @@ gin_triconsistent_jsonb_path_value(PG_FUNCTION_ARGS)
1291
1291
{
1292
1292
GinTernaryValue * check = (GinTernaryValue * ) PG_GETARG_POINTER (0 );
1293
1293
StrategyNumber strategy = PG_GETARG_UINT16 (1 );
1294
- /* Jsonb *query = PG_GETARG_JSONB (2); */
1294
+ /* Jsonb *query = PG_GETARG_JSONB_P (2); */
1295
1295
int32 nkeys = PG_GETARG_INT32 (3 );
1296
1296
Pointer * extra_data = (Pointer * ) PG_GETARG_POINTER (4 );
1297
1297
GinTernaryValue res = GIN_TRUE ;
0 commit comments