Skip to content

Commit 5c2a7c6

Browse files
committed
Add a comment explaining why we force physical removal of OIDs.
Noah Misch, slightly revised.
1 parent a06e41d commit 5c2a7c6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/backend/commands/tablecmds.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4942,7 +4942,9 @@ ATExecDropColumn(List **wqueue, Relation rel, const char *colName,
49424942

49434943
/*
49444944
* If we dropped the OID column, must adjust pg_class.relhasoids and tell
4945-
* Phase 3 to physically get rid of the column.
4945+
* Phase 3 to physically get rid of the column. We formerly left the
4946+
* column in place physically, but this caused subtle problems. See
4947+
* http://archives.postgresql.org/pgsql-hackers/2009-02/msg00363.php
49464948
*/
49474949
if (attnum == ObjectIdAttributeNumber)
49484950
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy