diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2023-11-28 18:29:18 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2023-11-28 18:29:18 +0300 |
commit | 855efb94214cc519805de89934d82bc5e0f92685 (patch) | |
tree | d8f5f741d46dbcb800bd2026bd8fd8f0d72a25e6 /psql/psql/downstream/catalog/pg_cast_d.h | |
parent | 646a9f3410dab150e0c7871273d4982fa5c132e9 (diff) |
Add psql package.
Don't compile port/strlcpy.c on Linux if GNU libc is 2.38 or newer.
Switch to using -pthread instead of -D_REENTRANT/-lpthread in buildfiles and bump build2 version requirement to 0.15.0.
Diffstat (limited to 'psql/psql/downstream/catalog/pg_cast_d.h')
-rw-r--r-- | psql/psql/downstream/catalog/pg_cast_d.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/psql/psql/downstream/catalog/pg_cast_d.h b/psql/psql/downstream/catalog/pg_cast_d.h new file mode 100644 index 0000000..5cc3f95 --- /dev/null +++ b/psql/psql/downstream/catalog/pg_cast_d.h @@ -0,0 +1,62 @@ +/*------------------------------------------------------------------------- + * + * pg_cast_d.h + * Macro definitions for pg_cast + * + * Portions Copyright (c) 1996-2021, PostgreSQL Global Development Group + * Portions Copyright (c) 1994, Regents of the University of California + * + * NOTES + * ****************************** + * *** DO NOT EDIT THIS FILE! *** + * ****************************** + * + * It has been GENERATED by src/backend/catalog/genbki.pl + * + *------------------------------------------------------------------------- + */ +#ifndef PG_CAST_D_H +#define PG_CAST_D_H + +#define CastRelationId 2605 + +#define Anum_pg_cast_oid 1 +#define Anum_pg_cast_castsource 2 +#define Anum_pg_cast_casttarget 3 +#define Anum_pg_cast_castfunc 4 +#define Anum_pg_cast_castcontext 5 +#define Anum_pg_cast_castmethod 6 + +#define Natts_pg_cast 6 + + +/* + * The allowable values for pg_cast.castcontext are specified by this enum. + * Since castcontext is stored as a "char", we use ASCII codes for human + * convenience in reading the table. Note that internally to the backend, + * these values are converted to the CoercionContext enum (see primnodes.h), + * which is defined to sort in a convenient order; the ASCII codes don't + * have to sort in any special order. + */ + +typedef enum CoercionCodes +{ + COERCION_CODE_IMPLICIT = 'i', /* coercion in context of expression */ + COERCION_CODE_ASSIGNMENT = 'a', /* coercion in context of assignment */ + COERCION_CODE_EXPLICIT = 'e' /* explicit cast operation */ +} CoercionCodes; + +/* + * The allowable values for pg_cast.castmethod are specified by this enum. + * Since castmethod is stored as a "char", we use ASCII codes for human + * convenience in reading the table. + */ +typedef enum CoercionMethod +{ + COERCION_METHOD_FUNCTION = 'f', /* use a function */ + COERCION_METHOD_BINARY = 'b', /* types are binary-compatible */ + COERCION_METHOD_INOUT = 'i' /* use input/output functions */ +} CoercionMethod; + + +#endif /* PG_CAST_D_H */ |