| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| #ifndef PG_ENUM_H |
| #define PG_ENUM_H |
|
|
| #include "catalog/genbki.h" |
| #include "catalog/pg_enum_d.h" |
|
|
| #include "nodes/pg_list.h" |
|
|
| |
| |
| |
| |
| |
| CATALOG(pg_enum,3501,EnumRelationId) |
| { |
| Oid oid; |
| Oid enumtypid BKI_LOOKUP(pg_type); |
| float4 enumsortorder; |
| NameData enumlabel; |
| } FormData_pg_enum; |
|
|
| |
| |
| |
| |
| |
| typedef FormData_pg_enum *Form_pg_enum; |
|
|
| DECLARE_UNIQUE_INDEX_PKEY(pg_enum_oid_index, 3502, EnumOidIndexId, on pg_enum using btree(oid oid_ops)); |
| DECLARE_UNIQUE_INDEX(pg_enum_typid_label_index, 3503, EnumTypIdLabelIndexId, on pg_enum using btree(enumtypid oid_ops, enumlabel name_ops)); |
| DECLARE_UNIQUE_INDEX(pg_enum_typid_sortorder_index, 3534, EnumTypIdSortOrderIndexId, on pg_enum using btree(enumtypid oid_ops, enumsortorder float4_ops)); |
|
|
| |
| |
| |
| extern void EnumValuesCreate(Oid enumTypeOid, List *vals); |
| extern void EnumValuesDelete(Oid enumTypeOid); |
| extern void AddEnumLabel(Oid enumTypeOid, const char *newVal, |
| const char *neighbor, bool newValIsAfter, |
| bool skipIfExists); |
| extern void RenameEnumLabel(Oid enumTypeOid, |
| const char *oldVal, const char *newVal); |
| extern bool EnumUncommitted(Oid enum_id); |
| extern Size EstimateUncommittedEnumsSpace(void); |
| extern void SerializeUncommittedEnums(void *space, Size size); |
| extern void RestoreUncommittedEnums(void *space); |
| extern void AtEOXact_Enum(void); |
|
|
| #endif |
|
|