Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
pg_cast_d.h65 linesDownload Raw Back to catalog
1/*-------------------------------------------------------------------------
2 *
3 * pg_cast_d.h
4 *    Macro definitions for pg_cast
5 *
6 * Portions Copyright (c) 1996-2023, 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#define CastRelationId 2605
22#define CastOidIndexId 2660
23#define CastSourceTargetIndexId 2661
24
25#define Anum_pg_cast_oid 1
26#define Anum_pg_cast_castsource 2
27#define Anum_pg_cast_casttarget 3
28#define Anum_pg_cast_castfunc 4
29#define Anum_pg_cast_castcontext 5
30#define Anum_pg_cast_castmethod 6
31
32#define Natts_pg_cast 6
33
34
35/*
36 * The allowable values for pg_cast.castcontext are specified by this enum.
37 * Since castcontext is stored as a "char", we use ASCII codes for human
38 * convenience in reading the table.  Note that internally to the backend,
39 * these values are converted to the CoercionContext enum (see primnodes.h),
40 * which is defined to sort in a convenient order; the ASCII codes don't
41 * have to sort in any special order.
42 */
43
44typedef enum CoercionCodes
45{
46	COERCION_CODE_IMPLICIT = 'i',	/* coercion in context of expression */
47	COERCION_CODE_ASSIGNMENT = 'a', /* coercion in context of assignment */
48	COERCION_CODE_EXPLICIT = 'e'	/* explicit cast operation */
49} CoercionCodes;
50
51/*
52 * The allowable values for pg_cast.castmethod are specified by this enum.
53 * Since castmethod is stored as a "char", we use ASCII codes for human
54 * convenience in reading the table.
55 */
56typedef enum CoercionMethod
57{
58	COERCION_METHOD_FUNCTION = 'f', /* use a function */
59	COERCION_METHOD_BINARY = 'b',	/* types are binary-compatible */
60	COERCION_METHOD_INOUT = 'i' /* use input/output functions */
61} CoercionMethod;
62
63
64#endif							/* PG_CAST_D_H */
65 
codekingpro/portable-devtools · Team Ai