@@ -179,7 +179,7 @@ get_partition_cooked_key_pl(PG_FUNCTION_ARGS)
179179 pfree (expr_cstr );
180180 pfree (expr );
181181
182- PG_RETURN_TEXT_P (CStringGetTextDatum (cooked_cstr ));
182+ PG_RETURN_DATUM (CStringGetTextDatum (cooked_cstr ));
183183}
184184
185185/*
@@ -199,7 +199,7 @@ get_cached_partition_cooked_key_pl(PG_FUNCTION_ARGS)
199199 res = CStringGetTextDatum (nodeToString (prel -> expr ));
200200 close_pathman_relation_info (prel );
201201
202- PG_RETURN_TEXT_P (res );
202+ PG_RETURN_DATUM (res );
203203}
204204
205205/*
@@ -688,7 +688,7 @@ validate_expression(PG_FUNCTION_ARGS)
688688
689689 if (!PG_ARGISNULL (1 ))
690690 {
691- expression = TextDatumGetCString (PG_GETARG_TEXT_P (1 ));
691+ expression = TextDatumGetCString (PG_GETARG_DATUM (1 ));
692692 }
693693 else ereport (ERROR , (errcode (ERRCODE_INVALID_PARAMETER_VALUE ),
694694 errmsg ("'expression' should not be NULL" )));
@@ -818,7 +818,7 @@ add_to_pathman_config(PG_FUNCTION_ARGS)
818818
819819 if (!PG_ARGISNULL (1 ))
820820 {
821- expression = TextDatumGetCString (PG_GETARG_TEXT_P (1 ));
821+ expression = TextDatumGetCString (PG_GETARG_DATUM (1 ));
822822 }
823823 else ereport (ERROR , (errcode (ERRCODE_INVALID_PARAMETER_VALUE ),
824824 errmsg ("'expression' should not be NULL" )));
@@ -1203,7 +1203,7 @@ is_operator_supported(PG_FUNCTION_ARGS)
12031203{
12041204 Oid opid ,
12051205 typid = PG_GETARG_OID (0 );
1206- char * opname = TextDatumGetCString (PG_GETARG_TEXT_P (1 ));
1206+ char * opname = TextDatumGetCString (PG_GETARG_DATUM (1 ));
12071207
12081208 opid = compatible_oper_opid (list_make1 (makeString (opname )),
12091209 typid , typid , true);
0 commit comments