@@ -179,7 +179,7 @@ get_partition_cooked_key_pl(PG_FUNCTION_ARGS)
179
179
pfree (expr_cstr );
180
180
pfree (expr );
181
181
182
- PG_RETURN_TEXT_P (CStringGetTextDatum (cooked_cstr ));
182
+ PG_RETURN_DATUM (CStringGetTextDatum (cooked_cstr ));
183
183
}
184
184
185
185
/*
@@ -199,7 +199,7 @@ get_cached_partition_cooked_key_pl(PG_FUNCTION_ARGS)
199
199
res = CStringGetTextDatum (nodeToString (prel -> expr ));
200
200
close_pathman_relation_info (prel );
201
201
202
- PG_RETURN_TEXT_P (res );
202
+ PG_RETURN_DATUM (res );
203
203
}
204
204
205
205
/*
@@ -688,7 +688,7 @@ validate_expression(PG_FUNCTION_ARGS)
688
688
689
689
if (!PG_ARGISNULL (1 ))
690
690
{
691
- expression = TextDatumGetCString (PG_GETARG_TEXT_P (1 ));
691
+ expression = TextDatumGetCString (PG_GETARG_DATUM (1 ));
692
692
}
693
693
else ereport (ERROR , (errcode (ERRCODE_INVALID_PARAMETER_VALUE ),
694
694
errmsg ("'expression' should not be NULL" )));
@@ -818,7 +818,7 @@ add_to_pathman_config(PG_FUNCTION_ARGS)
818
818
819
819
if (!PG_ARGISNULL (1 ))
820
820
{
821
- expression = TextDatumGetCString (PG_GETARG_TEXT_P (1 ));
821
+ expression = TextDatumGetCString (PG_GETARG_DATUM (1 ));
822
822
}
823
823
else ereport (ERROR , (errcode (ERRCODE_INVALID_PARAMETER_VALUE ),
824
824
errmsg ("'expression' should not be NULL" )));
@@ -1203,7 +1203,7 @@ is_operator_supported(PG_FUNCTION_ARGS)
1203
1203
{
1204
1204
Oid opid ,
1205
1205
typid = PG_GETARG_OID (0 );
1206
- char * opname = TextDatumGetCString (PG_GETARG_TEXT_P (1 ));
1206
+ char * opname = TextDatumGetCString (PG_GETARG_DATUM (1 ));
1207
1207
1208
1208
opid = compatible_oper_opid (list_make1 (makeString (opname )),
1209
1209
typid , typid , true);
0 commit comments