diff options
| author | Bruce Momjian | 2002-12-06 03:28:34 +0000 |
|---|---|---|
| committer | Bruce Momjian | 2002-12-06 03:28:34 +0000 |
| commit | 853153ca6dfdf2bdf6ce800216de75b2fefbb4f1 (patch) | |
| tree | a9911b35cf84db7bc101dc97a5e788bc3484f69c /src/include/nodes | |
| parent | 36580c8e2112e808f5847c4021fabe458096b134 (diff) | |
ALTER DOMAIN .. SET / DROP NOT NULL
ALTER DOMAIN .. SET / DROP DEFAULT
ALTER DOMAIN .. ADD / DROP CONSTRAINT
New files:
- doc/src/sgml/ref/alter_domain.sgml
Rod Taylor
Diffstat (limited to 'src/include/nodes')
| -rw-r--r-- | src/include/nodes/nodes.h | 3 | ||||
| -rw-r--r-- | src/include/nodes/parsenodes.h | 29 |
2 files changed, 30 insertions, 2 deletions
diff --git a/src/include/nodes/nodes.h b/src/include/nodes/nodes.h index cb16a300442..dc1290775d9 100644 --- a/src/include/nodes/nodes.h +++ b/src/include/nodes/nodes.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: nodes.h,v 1.126 2002/12/05 15:50:38 tgl Exp $ + * $Id: nodes.h,v 1.127 2002/12/06 03:28:33 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -157,6 +157,7 @@ typedef enum NodeTag T_UpdateStmt, T_SelectStmt, T_AlterTableStmt, + T_AlterDomainStmt, T_SetOperationStmt, T_GrantStmt, T_ClosePortalStmt, diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h index 7ca79b3520f..adcb6d9a551 100644 --- a/src/include/nodes/parsenodes.h +++ b/src/include/nodes/parsenodes.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: parsenodes.h,v 1.218 2002/11/25 03:36:50 tgl Exp $ + * $Id: parsenodes.h,v 1.219 2002/12/06 03:28:33 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -828,6 +828,33 @@ typedef struct AlterTableStmt } AlterTableStmt; /* ---------------------- + * Alter Domain + * + * The fields are used in different ways by the different variants of + * this command. Subtypes should match AlterTable subtypes + * ---------------------- + */ +typedef struct AlterDomainStmt +{ + NodeTag type; + char subtype; /*------------ + * T = alter column default + * N = alter column drop not null + * O = alter column set not null + * C = add constraint + * X = drop constraint + * U = change owner + *------------ + */ + List *typename; /* table to work on */ + char *name; /* column or constraint name to act on, or + * new owner */ + Node *def; /* definition of default or constraint */ + DropBehavior behavior; /* RESTRICT or CASCADE for DROP cases */ +} AlterDomainStmt; + + +/* ---------------------- * Grant|Revoke Statement * ---------------------- */ |
