/Users/deen/code/yugabyte-db/build/debugcov-clang-dynamic-arm64-ninja/postgres_build/src/include/catalog/pg_cast_d.h
Line | Count | Source |
1 | | /*------------------------------------------------------------------------- |
2 | | * |
3 | | * pg_cast_d.h |
4 | | * Macro definitions for pg_cast |
5 | | * |
6 | | * Portions Copyright (c) 1996-2018, PostgreSQL Global Development Group |
7 | | * Portions Copyright (c) 1994, Regents of the University of California |
8 | | * |
9 | | * NOTES |
10 | | * ****************************** |
11 | | * *** DO NOT EDIT THIS FILE! *** |
12 | | * ****************************** |
13 | | * |
14 | | * It has been GENERATED by src/backend/catalog/genbki.pl |
15 | | * |
16 | | *------------------------------------------------------------------------- |
17 | | */ |
18 | | #ifndef PG_CAST_D_H |
19 | | #define PG_CAST_D_H |
20 | | |
21 | 157 | #define CastRelationId 2605 |
22 | | |
23 | 24 | #define Anum_pg_cast_castsource 1 |
24 | 24 | #define Anum_pg_cast_casttarget 2 |
25 | 24 | #define Anum_pg_cast_castfunc 3 |
26 | 24 | #define Anum_pg_cast_castcontext 4 |
27 | 24 | #define Anum_pg_cast_castmethod 5 |
28 | | |
29 | | #define Natts_pg_cast 5 |
30 | | |
31 | | |
32 | | /* |
33 | | * The allowable values for pg_cast.castcontext are specified by this enum. |
34 | | * Since castcontext is stored as a "char", we use ASCII codes for human |
35 | | * convenience in reading the table. Note that internally to the backend, |
36 | | * these values are converted to the CoercionContext enum (see primnodes.h), |
37 | | * which is defined to sort in a convenient order; the ASCII codes don't |
38 | | * have to sort in any special order. |
39 | | */ |
40 | | |
41 | | typedef enum CoercionCodes |
42 | | { |
43 | | COERCION_CODE_IMPLICIT = 'i', /* coercion in context of expression */ |
44 | | COERCION_CODE_ASSIGNMENT = 'a', /* coercion in context of assignment */ |
45 | | COERCION_CODE_EXPLICIT = 'e' /* explicit cast operation */ |
46 | | } CoercionCodes; |
47 | | |
48 | | /* |
49 | | * The allowable values for pg_cast.castmethod are specified by this enum. |
50 | | * Since castmethod is stored as a "char", we use ASCII codes for human |
51 | | * convenience in reading the table. |
52 | | */ |
53 | | typedef enum CoercionMethod |
54 | | { |
55 | | COERCION_METHOD_FUNCTION = 'f', /* use a function */ |
56 | | COERCION_METHOD_BINARY = 'b', /* types are binary-compatible */ |
57 | | COERCION_METHOD_INOUT = 'i' /* use input/output functions */ |
58 | | } CoercionMethod; |
59 | | |
60 | | |
61 | | #endif /* PG_CAST_D_H */ |