From 93e1f5de0bc45d0ecd77fa0cf642d9e75b7c5fbf Mon Sep 17 00:00:00 2001 From: Jan Wieck Date: Wed, 5 Jul 2000 13:22:25 +0000 Subject: Automatically create toast tables on ALTER TABLE ... ADD COLUMN and SELECT ... INTO ... too. Jan --- src/backend/executor/execMain.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/backend/executor/execMain.c') diff --git a/src/backend/executor/execMain.c b/src/backend/executor/execMain.c index 7492c7ae2f6..c707315081d 100644 --- a/src/backend/executor/execMain.c +++ b/src/backend/executor/execMain.c @@ -27,7 +27,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.119 2000/07/04 06:11:33 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.120 2000/07/05 13:22:25 wieck Exp $ * *------------------------------------------------------------------------- */ @@ -35,6 +35,7 @@ #include "access/heapam.h" #include "catalog/heap.h" +#include "commands/command.h" #include "commands/trigger.h" #include "executor/execdebug.h" #include "executor/execdefs.h" @@ -892,6 +893,11 @@ InitPlan(CmdType operation, Query *parseTree, Plan *plan, EState *estate) */ CommandCounterIncrement(); + /* + * Eventually create a TOAST table for the into relation + */ + AlterTableCreateToastTable(intoName, true); + intoRelationDesc = heap_open(intoRelationId, AccessExclusiveLock); } -- cgit v1.2.3