Fix incorrect error code in StartupReplicationOrigin().
authorAmit Kapila <akapila@postgresql.org>
Mon, 30 Aug 2021 03:52:28 +0000 (09:22 +0530)
committerAmit Kapila <akapila@postgresql.org>
Mon, 30 Aug 2021 03:52:28 +0000 (09:22 +0530)
commit0a143c33f01257a0670af71205343b505f5bd89b
tree7e3203ac584d71d8ea08eee76f28937f61960f5e
parente1efc5b465c844969a0ed0d07e1364f3ce424d8c
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