During index build, check and elog (not just Assert) for broken HOT chain.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 17 Mar 2014 16:36:13 +0000 (12:36 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 17 Mar 2014 16:36:13 +0000 (12:36 -0400)
commitc3701254b58d2323dfa399d3ed62551e2c738c48
tree04992b067f296b794acf652a8db48fe3f66cc507
parent3857234053fccbea6344cc4a1b632750621d51d8
During index build, check and elog (not just Assert) for broken HOT chain.

The recently-fixed bug in WAL replay could result in not finding a parent
tuple for a heap-only tuple.  The existing code would either Assert or
generate an invalid index entry, neither of which is desirable.  Throw a
regular error instead.
src/backend/catalog/index.c