mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
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.
This commit is contained in:
@ -10,7 +10,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/tcop/utility.c,v 1.306 2009/02/02 19:31:39 alvherre Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/tcop/utility.c,v 1.307 2009/05/07 22:58:28 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -442,10 +442,13 @@ ProcessUtility(Node *parsetree,
|
||||
"toast",
|
||||
validnsps,
|
||||
true, false);
|
||||
(void) heap_reloptions(RELKIND_TOASTVALUE, toast_options,
|
||||
(void) heap_reloptions(RELKIND_TOASTVALUE,
|
||||
toast_options,
|
||||
true);
|
||||
|
||||
AlterTableCreateToastTable(relOid, toast_options);
|
||||
AlterTableCreateToastTable(relOid,
|
||||
toast_options,
|
||||
false);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user