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