|
7 | 7 | *
|
8 | 8 | *
|
9 | 9 | * IDENTIFICATION
|
10 |
| - * $Header: /cvsroot/pgsql/src/backend/commands/Attic/command.c,v 1.42 1999/03/30 01:37:22 momjian Exp $ |
| 10 | + * $Header: /cvsroot/pgsql/src/backend/commands/Attic/command.c,v 1.43 1999/04/13 19:04:33 momjian Exp $ |
11 | 11 | *
|
12 | 12 | * NOTES
|
13 | 13 | * The PortalExecutorHeapMemory crap needs to be eliminated
|
|
38 | 38 | #include"utils/builtins.h"
|
39 | 39 | #include"utils/mcxt.h"
|
40 | 40 | #include"utils/portal.h"
|
| 41 | +#include"utils/relcache.h" |
| 42 | +#include"utils/temprel.h" |
41 | 43 | #include"utils/syscache.h"
|
42 | 44 | #include"miscadmin.h"
|
43 | 45 | #include"string.h"
|
@@ -500,6 +502,13 @@ PerformAddAttribute(char *relationName,
|
500 | 502 | ((Form_pg_class)GETSTRUCT(reltup))->relnatts=maxatts;
|
501 | 503 | heap_replace(rel,&reltup->t_self,reltup,NULL);
|
502 | 504 |
|
| 505 | +{ |
| 506 | +HeapTupletemptup; |
| 507 | + |
| 508 | +if ((temptup=get_temp_rel_by_name(relationName))!=NULL) |
| 509 | +((Form_pg_class)GETSTRUCT(temptup))->relnatts=maxatts; |
| 510 | +} |
| 511 | + |
503 | 512 | /* keep catalog indices current */
|
504 | 513 | CatalogOpenIndices(Num_pg_class_indices,Name_pg_class_indices,ridescs);
|
505 | 514 | CatalogIndexInsert(ridescs,Num_pg_class_indices,rel,reltup);
|
|