summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorTom Lane2002-04-01 04:35:40 +0000
committerTom Lane2002-04-01 04:35:40 +0000
commit9b77f6193058d84adee26a3ec0c50a99e443ae92 (patch)
treebebbba40230ed0774b3c3cc31f5866d7ede43763 /src/include
parent838fe25a9532ab2e9b9b7517fec94e804cf3da81 (diff)
ALTER TABLE SET/DROP NOT NULL, from Christopher Kings-Lynne.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/commands/command.h8
-rw-r--r--src/include/nodes/parsenodes.h4
2 files changed, 10 insertions, 2 deletions
diff --git a/src/include/commands/command.h b/src/include/commands/command.h
index 73c33ac3c7..cfb8f20890 100644
--- a/src/include/commands/command.h
+++ b/src/include/commands/command.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: command.h,v 1.36 2002/03/29 19:06:21 tgl Exp $
+ * $Id: command.h,v 1.37 2002/04/01 04:35:39 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -45,6 +45,12 @@ extern void AlterTableAddColumn(Oid myrelid, bool inherits, ColumnDef *colDef);
extern void AlterTableAlterColumnDefault(Oid myrelid, bool inh,
const char *colName, Node *newDefault);
+extern void AlterTableAlterColumnDropNotNull(Oid myrelid,
+ bool inh, const char *colName);
+
+extern void AlterTableAlterColumnSetNotNull(Oid myrelid,
+ bool inh, const char *colName);
+
extern void AlterTableAlterColumnFlags(Oid myrelid,
bool inh, const char *colName,
Node *flagValue, const char *flagType);
diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h
index 4e08940f7b..4cccc6a7d2 100644
--- a/src/include/nodes/parsenodes.h
+++ b/src/include/nodes/parsenodes.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: parsenodes.h,v 1.166 2002/03/29 19:06:23 tgl Exp $
+ * $Id: parsenodes.h,v 1.167 2002/04/01 04:35:40 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -728,6 +728,8 @@ typedef struct AlterTableStmt
char subtype; /*------------
* A = add column
* T = alter column default
+ * N = alter column drop not null
+ * O = alter column set not null
* S = alter column statistics
* M = alter column storage
* D = drop column