diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2002-07-01 15:27:56 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2002-07-01 15:27:56 +0000 |
commit | 131f801d37b77d3633c07142010d1968c09e3fd8 (patch) | |
tree | 236b50e70f0ceb7bbc203c6c95c8b825069cb56d /src/include/commands/tablecmds.h | |
parent | a3ec44a5d3206a50782ac0b4c7990cf1cdaf0092 (diff) | |
download | postgresql-131f801d37b77d3633c07142010d1968c09e3fd8.tar.gz postgresql-131f801d37b77d3633c07142010d1968c09e3fd8.zip |
First phase of applying Rod Taylor's pg_depend patch. This just adds
RESTRICT/CASCADE syntax to the DROP commands that need it, and propagates
the behavioral option through the parser to the routines that execute
drops. Doesn't do anything useful yet, but I figured I'd commit these
changes so I could get out of the parser area while working on the rest.
Diffstat (limited to 'src/include/commands/tablecmds.h')
-rw-r--r-- | src/include/commands/tablecmds.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/include/commands/tablecmds.h b/src/include/commands/tablecmds.h index 646ae45d240..d38ea537c6d 100644 --- a/src/include/commands/tablecmds.h +++ b/src/include/commands/tablecmds.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: tablecmds.h,v 1.4 2002/04/30 01:24:52 tgl Exp $ + * $Id: tablecmds.h,v 1.5 2002/07/01 15:27:56 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -34,13 +34,15 @@ extern void AlterTableAlterColumnFlags(Oid myrelid, bool inh, Node *flagValue, const char *flagType); extern void AlterTableDropColumn(Oid myrelid, bool inh, - const char *colName, int behavior); + const char *colName, + DropBehavior behavior); extern void AlterTableAddConstraint(Oid myrelid, bool inh, List *newConstraints); extern void AlterTableDropConstraint(Oid myrelid, bool inh, - const char *constrName, int behavior); + const char *constrName, + DropBehavior behavior); extern void AlterTableCreateToastTable(Oid relOid, bool silent); @@ -48,7 +50,7 @@ extern void AlterTableOwner(Oid relationOid, int32 newOwnerSysId); extern Oid DefineRelation(CreateStmt *stmt, char relkind); -extern void RemoveRelation(const RangeVar *relation); +extern void RemoveRelation(const RangeVar *relation, DropBehavior behavior); extern void TruncateRelation(const RangeVar *relation); |