Fix incorrect error code in StartupReplicationOrigin().
authorAmit Kapila <[email protected]>
Mon, 30 Aug 2021 04:30:03 +0000 (10:00 +0530)
committerAmit Kapila <[email protected]>
Mon, 30 Aug 2021 04:30:03 +0000 (10:00 +0530)
commit16cad4be32a44b9d05c594d1f53a60ea6e0f58b6
treedc36092eb90952abe8a952a7063d1d2f8fb65172
parentf11c1bb17099834a3640a750b263e08f5e6f8135
Fix incorrect error code in StartupReplicationOrigin().

ERRCODE_CONFIGURATION_LIMIT_EXCEEDED was used for checksum failure, use
ERRCODE_DATA_CORRUPTED instead.

Reported-by: Tatsuhito Kasahara
Author: Tatsuhito Kasahara
Backpatch-through: 9.6, where it was introduced
Discussion: https://postgr.es/m/CAP0=ZVLHtYffs8SOWcFJWrBGoRzT9QQbk+_aP+E5AHLNXiOorA@mail.gmail.com
src/backend/replication/logical/origin.c