1 | /*------------------------------------------------------------------------- |
2 | * |
3 | * pg_attrdef.h |
4 | * definition of the "attribute defaults" system catalog (pg_attrdef) |
5 | * |
6 | * |
7 | * Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group |
8 | * Portions Copyright (c) 1994, Regents of the University of California |
9 | * |
10 | * src/include/catalog/pg_attrdef.h |
11 | * |
12 | * NOTES |
13 | * The Catalog.pm module reads this file and derives schema |
14 | * information. |
15 | * |
16 | *------------------------------------------------------------------------- |
17 | */ |
18 | #ifndef PG_ATTRDEF_H |
19 | #define PG_ATTRDEF_H |
20 | |
21 | #include "catalog/genbki.h" |
22 | #include "catalog/pg_attrdef_d.h" |
23 | |
24 | /* ---------------- |
25 | * pg_attrdef definition. cpp turns this into |
26 | * typedef struct FormData_pg_attrdef |
27 | * ---------------- |
28 | */ |
29 | CATALOG(pg_attrdef,2604,AttrDefaultRelationId) |
30 | { |
31 | Oid oid; /* oid */ |
32 | |
33 | Oid adrelid; /* OID of table containing attribute */ |
34 | int16 adnum; /* attnum of attribute */ |
35 | |
36 | #ifdef CATALOG_VARLEN /* variable-length fields start here */ |
37 | pg_node_tree adbin BKI_FORCE_NOT_NULL; /* nodeToString representation of |
38 | * default */ |
39 | #endif |
40 | } FormData_pg_attrdef; |
41 | |
42 | /* ---------------- |
43 | * Form_pg_attrdef corresponds to a pointer to a tuple with |
44 | * the format of pg_attrdef relation. |
45 | * ---------------- |
46 | */ |
47 | typedef FormData_pg_attrdef *Form_pg_attrdef; |
48 | |
49 | #endif /* PG_ATTRDEF_H */ |
50 | |