From 24614a988005a0811198458fc934b87375582168 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Tue, 23 Mar 2004 19:35:17 +0000 Subject: Upgrade ALTER TABLE DROP COLUMN so that it can drop an OID column, and remove separate implementation of ALTER TABLE SET WITHOUT OIDS in favor of doing a regular DROP. Also, cause CREATE TABLE to account completely correctly for the inheritance status of the OID column. This fixes problems with dropping OID columns that have dependencies, as noted by Christopher Kings-Lynne, as well as making sure that you can't drop an OID column that was inherited from a parent. --- src/backend/executor/execMain.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/backend/executor/execMain.c') diff --git a/src/backend/executor/execMain.c b/src/backend/executor/execMain.c index caae6e880e5..13b38d37529 100644 --- a/src/backend/executor/execMain.c +++ b/src/backend/executor/execMain.c @@ -26,7 +26,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/executor/execMain.c,v 1.229 2004/03/02 18:56:15 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/executor/execMain.c,v 1.230 2004/03/23 19:35:16 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -797,6 +797,8 @@ InitPlan(QueryDesc *queryDesc, bool explainOnly) tupdesc, RELKIND_RELATION, false, + true, + 0, ONCOMMIT_NOOP, allowSystemTableMods); -- cgit v1.2.3