aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/cluster.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2004-03-23 19:35:17 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2004-03-23 19:35:17 +0000
commit24614a988005a0811198458fc934b87375582168 (patch)
tree42510feed47a8aee1d95196de379b1be5826c296 /src/backend/commands/cluster.c
parent446b5476e531cb92778073903341ff5ec8d3044b (diff)
downloadpostgresql-24614a988005a0811198458fc934b87375582168.tar.gz
postgresql-24614a988005a0811198458fc934b87375582168.zip
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.
Diffstat (limited to 'src/backend/commands/cluster.c')
-rw-r--r--src/backend/commands/cluster.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c
index e39320d9edd..a10bbbd746c 100644
--- a/src/backend/commands/cluster.c
+++ b/src/backend/commands/cluster.c
@@ -11,7 +11,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/commands/cluster.c,v 1.119 2003/11/29 19:51:47 pgsql Exp $
+ * $PostgreSQL: pgsql/src/backend/commands/cluster.c,v 1.120 2004/03/23 19:35:16 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -501,6 +501,8 @@ make_new_heap(Oid OIDOldHeap, const char *NewName)
tupdesc,
OldHeap->rd_rel->relkind,
OldHeap->rd_rel->relisshared,
+ true,
+ 0,
ONCOMMIT_NOOP,
allowSystemTableMods);