Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

+3-1
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)