Skip to content

Commit a24ebc3

Browse files
committed
Remove no-longer-needed code to update temprel's copy of
pg_class tuple during ALTER TABLE ADD COLUMN.
1 parent fb7548f commit a24ebc3

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/backend/commands/command.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/command.c,v 1.52 1999/07/17 20:16:51 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/command.c,v 1.53 1999/09/04 21:19:33 tgl Exp $
1111
*
1212
* NOTES
1313
* The PortalExecutorHeapMemory crap needs to be eliminated
@@ -495,13 +495,6 @@ PerformAddAttribute(char *relationName,
495495
((Form_pg_class) GETSTRUCT(reltup))->relnatts = maxatts;
496496
heap_replace(rel, &reltup->t_self, reltup, NULL);
497497

498-
{
499-
HeapTuple temptup;
500-
501-
if ((temptup = get_temp_rel_by_name(relationName)) != NULL)
502-
((Form_pg_class) GETSTRUCT(temptup))->relnatts = maxatts;
503-
}
504-
505498
/* keep catalog indices current */
506499
CatalogOpenIndices(Num_pg_class_indices, Name_pg_class_indices, ridescs);
507500
CatalogIndexInsert(ridescs, Num_pg_class_indices, rel, reltup);

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