]> granicus.if.org Git - postgresql/commit
pg_upgrade: Handle hash index upgrades more smoothly.
authorRobert Haas <rhaas@postgresql.org>
Fri, 19 May 2017 20:49:38 +0000 (16:49 -0400)
committerRobert Haas <rhaas@postgresql.org>
Fri, 19 May 2017 20:49:38 +0000 (16:49 -0400)
commita95410e2ec39b6776381fd01198dc57a063e8185
tree3cf687880944d9f509e9f421da6370d9c784f52a
parente807d8b16338c97e60e41344d0fc13bd9cf540be
pg_upgrade: Handle hash index upgrades more smoothly.

Mark any old hash indexes as invalid so that they don't get used, and
create a script to run REINDEX on all of them.  Without this, we'd
still try to use any upgraded hash indexes, but it would fail.

Amit Kapila, reviewed by me.  Per a suggestion from Tom Lane.

Discussion: http://postgr.es/m/CAA4eK1Jidtagm7Q81q-WoegOVgkotv0OxvHOjFxcvFRP4X=mSw@mail.gmail.com
src/bin/pg_upgrade/check.c
src/bin/pg_upgrade/pg_upgrade.h
src/bin/pg_upgrade/version.c