Add an option to AlterTableCreateToastTable() to allow its caller to force
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 7 May 2009 22:58:28 +0000 (22:58 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 7 May 2009 22:58:28 +0000 (22:58 +0000)
commitda129ba009b894f14cc917028408e4fdef972219
tree7b9664f07b1a0b208969acd817abf7bdc86d6fad
parenta036a849edd1bae8bb866bf530ac3b6032034e95
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.
src/backend/catalog/toasting.c
src/backend/commands/cluster.c
src/backend/commands/tablecmds.c
src/backend/executor/execMain.c
src/backend/tcop/utility.c
src/include/catalog/toasting.h