Add an option to AlterTableCreateToastTable() to allow its caller to force
Tom Lane <tgl@sss.pgh.pa.us>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/catalog/toasting.c | modified | +17 −8 |
| src/backend/commands/cluster.c | modified | +2 −2 |
| src/backend/commands/tablecmds.c | modified | +2 −2 |
| src/backend/executor/execMain.c | modified | +2 −2 |
| src/backend/tcop/utility.c | modified | +6 −3 |
| src/include/catalog/toasting.h | modified | +2 −2 |