]> granicus.if.org Git - postgresql/commit
Set indcheckxmin true when REINDEX fixes an invalid or not-ready index.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 20 Apr 2011 23:01:25 +0000 (19:01 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 20 Apr 2011 23:01:25 +0000 (19:01 -0400)
commit1d6249d64ddbd7796c1ccaef801b709d5108bc2e
treec45a7501812cbdc13e809f27a200845c0c9f8cfe
parent8a6d60fd0c01671773055558b687199ede961a97
Set indcheckxmin true when REINDEX fixes an invalid or not-ready index.

Per comment from Greg Stark, it's less clear that HOT chains don't conflict
with the index than it would be for a valid index.  So, let's preserve the
former behavior that indcheckxmin does get set when there are
potentially-broken HOT chains in this case.  This change does not cause any
pg_index update that wouldn't have happened anyway, so we're not
re-introducing the previous bug with pg_index updates, and surely the case
is not significant from a performance standpoint; so let's be as
conservative as possible.
src/backend/catalog/index.c