logical decoding: beware of an unset specinsert change

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: 02bfd6d415bfacdf16a273420fd86c67189556ff
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2018-07-05T21:42:37Z
Releases: 9.5.14
logical decoding: beware of an unset specinsert change

Coverity complains that there is no protection in the code (at least in
non-assertion-enabled builds) against speculative insertion failing to
follow the expected protocol.  Add an elog(ERROR) for the case.

Files

PathChange+/−
src/backend/replication/logical/reorderbuffer.c modified +2 −0