pg_upgrade: allow upgrades for new-only TOAST tables
authorBruce Momjian <bruce@momjian.us>
Mon, 7 Jul 2014 17:24:08 +0000 (13:24 -0400)
committerBruce Momjian <bruce@momjian.us>
Mon, 7 Jul 2014 17:24:08 +0000 (13:24 -0400)
commitf1d7ff5bb8a7beef9afaa311c6f61a37ed4e000e
treeec25b8db767dca77bf9d3e3ddad5c3f8cccd452f
parent3d2e1851096752c3ca4dee5c16b552332de09946
pg_upgrade: allow upgrades for new-only TOAST tables

Previously, when calculations on the need for toast tables changed,
pg_upgrade could not handle cases where the new cluster needed a TOAST
table and the old cluster did not.  (It already handled the opposite
case.)  This fixes the "OID mismatch" error typically generated in this
case.

Backpatch through 9.2
contrib/pg_upgrade/info.c