@@ -38636,6 +38636,165 @@ extern "C" {
3863638636 missing_ok: bool,
3863738637 );
3863838638}
38639+ pub type TYPCATEGORY = ::std::os::raw::c_char;
38640+ pub const CoercionPathType_COERCION_PATH_NONE: CoercionPathType = 0;
38641+ pub const CoercionPathType_COERCION_PATH_FUNC: CoercionPathType = 1;
38642+ pub const CoercionPathType_COERCION_PATH_RELABELTYPE: CoercionPathType = 2;
38643+ pub const CoercionPathType_COERCION_PATH_ARRAYCOERCE: CoercionPathType = 3;
38644+ pub const CoercionPathType_COERCION_PATH_COERCEVIAIO: CoercionPathType = 4;
38645+ pub type CoercionPathType = ::std::os::raw::c_uint;
38646+ #[pgx_macros::pg_guard]
38647+ extern "C" {
38648+ pub fn IsBinaryCoercible(srctype: Oid, targettype: Oid) -> bool;
38649+ }
38650+ #[pgx_macros::pg_guard]
38651+ extern "C" {
38652+ pub fn IsPreferredType(category: TYPCATEGORY, type_: Oid) -> bool;
38653+ }
38654+ #[pgx_macros::pg_guard]
38655+ extern "C" {
38656+ pub fn TypeCategory(type_: Oid) -> TYPCATEGORY;
38657+ }
38658+ #[pgx_macros::pg_guard]
38659+ extern "C" {
38660+ pub fn coerce_to_target_type(
38661+ pstate: *mut ParseState,
38662+ expr: *mut Node,
38663+ exprtype: Oid,
38664+ targettype: Oid,
38665+ targettypmod: int32,
38666+ ccontext: CoercionContext,
38667+ cformat: CoercionForm,
38668+ location: ::std::os::raw::c_int,
38669+ ) -> *mut Node;
38670+ }
38671+ #[pgx_macros::pg_guard]
38672+ extern "C" {
38673+ pub fn can_coerce_type(
38674+ nargs: ::std::os::raw::c_int,
38675+ input_typeids: *mut Oid,
38676+ target_typeids: *mut Oid,
38677+ ccontext: CoercionContext,
38678+ ) -> bool;
38679+ }
38680+ #[pgx_macros::pg_guard]
38681+ extern "C" {
38682+ pub fn coerce_type(
38683+ pstate: *mut ParseState,
38684+ node: *mut Node,
38685+ inputTypeId: Oid,
38686+ targetTypeId: Oid,
38687+ targetTypeMod: int32,
38688+ ccontext: CoercionContext,
38689+ cformat: CoercionForm,
38690+ location: ::std::os::raw::c_int,
38691+ ) -> *mut Node;
38692+ }
38693+ #[pgx_macros::pg_guard]
38694+ extern "C" {
38695+ pub fn coerce_to_domain(
38696+ arg: *mut Node,
38697+ baseTypeId: Oid,
38698+ baseTypeMod: int32,
38699+ typeId: Oid,
38700+ ccontext: CoercionContext,
38701+ cformat: CoercionForm,
38702+ location: ::std::os::raw::c_int,
38703+ hideInputCoercion: bool,
38704+ ) -> *mut Node;
38705+ }
38706+ #[pgx_macros::pg_guard]
38707+ extern "C" {
38708+ pub fn coerce_to_boolean(
38709+ pstate: *mut ParseState,
38710+ node: *mut Node,
38711+ constructName: *const ::std::os::raw::c_char,
38712+ ) -> *mut Node;
38713+ }
38714+ #[pgx_macros::pg_guard]
38715+ extern "C" {
38716+ pub fn coerce_to_specific_type(
38717+ pstate: *mut ParseState,
38718+ node: *mut Node,
38719+ targetTypeId: Oid,
38720+ constructName: *const ::std::os::raw::c_char,
38721+ ) -> *mut Node;
38722+ }
38723+ #[pgx_macros::pg_guard]
38724+ extern "C" {
38725+ pub fn coerce_to_specific_type_typmod(
38726+ pstate: *mut ParseState,
38727+ node: *mut Node,
38728+ targetTypeId: Oid,
38729+ targetTypmod: int32,
38730+ constructName: *const ::std::os::raw::c_char,
38731+ ) -> *mut Node;
38732+ }
38733+ #[pgx_macros::pg_guard]
38734+ extern "C" {
38735+ pub fn parser_coercion_errposition(
38736+ pstate: *mut ParseState,
38737+ coerce_location: ::std::os::raw::c_int,
38738+ input_expr: *mut Node,
38739+ ) -> ::std::os::raw::c_int;
38740+ }
38741+ #[pgx_macros::pg_guard]
38742+ extern "C" {
38743+ pub fn select_common_type(
38744+ pstate: *mut ParseState,
38745+ exprs: *mut List,
38746+ context: *const ::std::os::raw::c_char,
38747+ which_expr: *mut *mut Node,
38748+ ) -> Oid;
38749+ }
38750+ #[pgx_macros::pg_guard]
38751+ extern "C" {
38752+ pub fn coerce_to_common_type(
38753+ pstate: *mut ParseState,
38754+ node: *mut Node,
38755+ targetTypeId: Oid,
38756+ context: *const ::std::os::raw::c_char,
38757+ ) -> *mut Node;
38758+ }
38759+ #[pgx_macros::pg_guard]
38760+ extern "C" {
38761+ pub fn check_generic_type_consistency(
38762+ actual_arg_types: *mut Oid,
38763+ declared_arg_types: *mut Oid,
38764+ nargs: ::std::os::raw::c_int,
38765+ ) -> bool;
38766+ }
38767+ #[pgx_macros::pg_guard]
38768+ extern "C" {
38769+ pub fn enforce_generic_type_consistency(
38770+ actual_arg_types: *mut Oid,
38771+ declared_arg_types: *mut Oid,
38772+ nargs: ::std::os::raw::c_int,
38773+ rettype: Oid,
38774+ allow_poly: bool,
38775+ ) -> Oid;
38776+ }
38777+ #[pgx_macros::pg_guard]
38778+ extern "C" {
38779+ pub fn resolve_generic_type(
38780+ declared_type: Oid,
38781+ context_actual_type: Oid,
38782+ context_declared_type: Oid,
38783+ ) -> Oid;
38784+ }
38785+ #[pgx_macros::pg_guard]
38786+ extern "C" {
38787+ pub fn find_coercion_pathway(
38788+ targetTypeId: Oid,
38789+ sourceTypeId: Oid,
38790+ ccontext: CoercionContext,
38791+ funcid: *mut Oid,
38792+ ) -> CoercionPathType;
38793+ }
38794+ #[pgx_macros::pg_guard]
38795+ extern "C" {
38796+ pub fn find_typmod_coercion_function(typeId: Oid, funcid: *mut Oid) -> CoercionPathType;
38797+ }
3863938798pub const BackslashQuoteType_BACKSLASH_QUOTE_OFF: BackslashQuoteType = 0;
3864038799pub const BackslashQuoteType_BACKSLASH_QUOTE_ON: BackslashQuoteType = 1;
3864138800pub const BackslashQuoteType_BACKSLASH_QUOTE_SAFE_ENCODING: BackslashQuoteType = 2;
0 commit comments