codekingpro/portable-devtools
114k
1/*-------------------------------------------------------------------------
2 *
3 * pg_constraint_d.h
4 * Macro definitions for pg_constraint
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_CONSTRAINT_D_H
19#define PG_CONSTRAINT_D_H
20
21#define ConstraintRelationId 2606
22#define ConstraintNameNspIndexId 2664
23#define ConstraintRelidTypidNameIndexId 2665
24#define ConstraintTypidIndexId 2666
25#define ConstraintOidIndexId 2667
26#define ConstraintParentIndexId 2579
27
28#define Anum_pg_constraint_oid 1
29#define Anum_pg_constraint_conname 2
30#define Anum_pg_constraint_connamespace 3
31#define Anum_pg_constraint_contype 4
32#define Anum_pg_constraint_condeferrable 5
33#define Anum_pg_constraint_condeferred 6
34#define Anum_pg_constraint_convalidated 7
35#define Anum_pg_constraint_conrelid 8
36#define Anum_pg_constraint_contypid 9
37#define Anum_pg_constraint_conindid 10
38#define Anum_pg_constraint_conparentid 11
39#define Anum_pg_constraint_confrelid 12
40#define Anum_pg_constraint_confupdtype 13
41#define Anum_pg_constraint_confdeltype 14
42#define Anum_pg_constraint_confmatchtype 15
43#define Anum_pg_constraint_conislocal 16
44#define Anum_pg_constraint_coninhcount 17
45#define Anum_pg_constraint_connoinherit 18
46#define Anum_pg_constraint_conkey 19
47#define Anum_pg_constraint_confkey 20
48#define Anum_pg_constraint_conpfeqop 21
49#define Anum_pg_constraint_conppeqop 22
50#define Anum_pg_constraint_conffeqop 23
51#define Anum_pg_constraint_confdelsetcols 24
52#define Anum_pg_constraint_conexclop 25
53#define Anum_pg_constraint_conbin 26
54
55#define Natts_pg_constraint 26
56
57
58/* Valid values for contype */
59#define CONSTRAINT_CHECK 'c'
60#define CONSTRAINT_FOREIGN 'f'
61#define CONSTRAINT_PRIMARY 'p'
62#define CONSTRAINT_UNIQUE 'u'
63#define CONSTRAINT_TRIGGER 't'
64#define CONSTRAINT_EXCLUSION 'x'
65
66/*
67 * Valid values for confupdtype and confdeltype are the FKCONSTR_ACTION_xxx
68 * constants defined in parsenodes.h. Valid values for confmatchtype are
69 * the FKCONSTR_MATCH_xxx constants defined in parsenodes.h.
70 */
71
72
73#endif /* PG_CONSTRAINT_D_H */
74 