aboutsummaryrefslogtreecommitdiff
path: root/src/include/nodes/parsenodes.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2011-02-10 17:36:44 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2011-02-10 17:37:22 -0500
commit01467d3e4f51fe304c0160c9895484ad696d1e87 (patch)
tree6ce04b83da1f5c472281b3970eab67e2b8fc0d6a /src/include/nodes/parsenodes.h
parent289d7306555b2446d145c7e098c91b6ca20bd54c (diff)
downloadpostgresql-01467d3e4f51fe304c0160c9895484ad696d1e87.tar.gz
postgresql-01467d3e4f51fe304c0160c9895484ad696d1e87.zip
Extend "ALTER EXTENSION ADD object" to permit "DROP object" as well.
Per discussion, this is something we should have sooner rather than later, and it doesn't take much additional code to support it.
Diffstat (limited to 'src/include/nodes/parsenodes.h')
-rw-r--r--src/include/nodes/parsenodes.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h
index 2116c94d0d3..b54f0cfe02f 100644
--- a/src/include/nodes/parsenodes.h
+++ b/src/include/nodes/parsenodes.h
@@ -1546,14 +1546,15 @@ typedef struct CreateExtensionStmt
List *options; /* List of DefElem nodes */
} CreateExtensionStmt;
-typedef struct AlterExtensionAddStmt
+typedef struct AlterExtensionContentsStmt
{
NodeTag type;
char *extname; /* Extension's name */
+ int action; /* +1 = add object, -1 = drop object */
ObjectType objtype; /* Object's type */
List *objname; /* Qualified name of the object */
List *objargs; /* Arguments if needed (eg, for functions) */
-} AlterExtensionAddStmt;
+} AlterExtensionContentsStmt;
/* ----------------------
* Create/Drop FOREIGN DATA WRAPPER Statements