mirror of
https://github.com/postgres/postgres.git
synced 2025-11-07 19:06:32 +03:00
Re-addd Rod's ALTER DOMAIN patch.
This commit is contained in:
@@ -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.220 2002/12/06 03:43:28 momjian Exp $
|
||||
* $Id: parsenodes.h,v 1.221 2002/12/06 05:00:32 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -827,6 +827,33 @@ typedef struct AlterTableStmt
|
||||
DropBehavior behavior; /* RESTRICT or CASCADE for DROP cases */
|
||||
} 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
|
||||
* ----------------------
|
||||
|
||||
Reference in New Issue
Block a user