aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/execMain.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2009-05-07 22:58:28 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2009-05-07 22:58:28 +0000
commit1e06ed1abe6244573683dd1220042c8f06112ed0 (patch)
tree46d1ac63bb10b990fe705aea4ea4d08f574cd82f /src/backend/executor/execMain.c
parent48caf91b66fda69ffaf0d0aeb54ee41c6727ea2d (diff)
downloadpostgresql-1e06ed1abe6244573683dd1220042c8f06112ed0.tar.gz
postgresql-1e06ed1abe6244573683dd1220042c8f06112ed0.zip
Add an option to AlterTableCreateToastTable() to allow its caller to force
a toast table to be built, even if the sum-of-column-widths calculation indicates one isn't needed. This is needed by pg_migrator because if the old table has a toast table, we have to migrate over the toast table since it might contain some live data, even though subsequent column drops could mean that no recently-added rows could require toasting.
Diffstat (limited to 'src/backend/executor/execMain.c')
-rw-r--r--src/backend/executor/execMain.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/executor/execMain.c b/src/backend/executor/execMain.c
index 2ff4150f601..03461a235af 100644
--- a/src/backend/executor/execMain.c
+++ b/src/backend/executor/execMain.c
@@ -26,7 +26,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/executor/execMain.c,v 1.323 2009/02/08 18:02:27 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/executor/execMain.c,v 1.324 2009/05/07 22:58:28 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -2953,7 +2953,7 @@ OpenIntoRel(QueryDesc *queryDesc)
(void) heap_reloptions(RELKIND_TOASTVALUE, reloptions, true);
- AlterTableCreateToastTable(intoRelationId, reloptions);
+ AlterTableCreateToastTable(intoRelationId, reloptions, false);
/*
* And open the constructed table for writing.