mirror of
https://github.com/postgres/postgres.git
synced 2025-11-07 19:06:32 +03:00
Support enum data types. Along the way, use macros for the values of
pg_type.typtype whereever practical. Tom Dunstan, with some kibitzing from Tom Lane.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/include/nodes/parsenodes.h,v 1.343 2007/03/19 23:38:32 wieck Exp $
|
||||
* $PostgreSQL: pgsql/src/include/nodes/parsenodes.h,v 1.344 2007/04/02 03:49:41 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -1706,6 +1706,17 @@ typedef struct CompositeTypeStmt
|
||||
List *coldeflist; /* list of ColumnDef nodes */
|
||||
} CompositeTypeStmt;
|
||||
|
||||
/* ----------------------
|
||||
* Create Type Statement, enum types
|
||||
* ----------------------
|
||||
*/
|
||||
typedef struct CreateEnumStmt
|
||||
{
|
||||
NodeTag type;
|
||||
List *typename; /* qualified name (list of Value strings) */
|
||||
List *vals; /* enum values (list of Value strings) */
|
||||
} CreateEnumStmt;
|
||||
|
||||
|
||||
/* ----------------------
|
||||
* Create View Statement
|
||||
|
||||
Reference in New Issue
Block a user