mirror of
https://github.com/postgres/postgres.git
synced 2026-01-05 23:38:41 +03:00
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.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_table.sgml,v 1.66 2004/03/09 16:57:47 neilc Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/ref/alter_table.sgml,v 1.67 2004/03/23 19:35:15 tgl Exp $
|
||||
PostgreSQL documentation
|
||||
-->
|
||||
|
||||
@@ -150,12 +150,11 @@ ALTER TABLE <replaceable class="PARAMETER">name</replaceable>
|
||||
<term><literal>SET WITHOUT OIDS</literal></term>
|
||||
<listitem>
|
||||
<para>
|
||||
This form removes the <literal>oid</literal> column from the
|
||||
table. Removing OIDs from a table does not occur immediately.
|
||||
The space that the OID uses will be reclaimed when the row is
|
||||
updated. Without updating the row, both the space and the value
|
||||
of the OID are kept indefinitely. This is semantically similar
|
||||
to the <literal>DROP COLUMN</literal> process.
|
||||
This form removes the <literal>oid</literal> system column from the
|
||||
table. This is exactly equivalent to
|
||||
<literal>DROP COLUMN oid RESTRICT</literal>,
|
||||
except that it will not complain if there is already no
|
||||
<literal>oid</literal> column.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
|
||||
Reference in New Issue
Block a user