Improve ERROR/LOG messages added by commits ddd5f4f54a and 7a424ece48.
authorAmit Kapila <[email protected]>
Thu, 22 Feb 2024 05:47:00 +0000 (11:17 +0530)
committerAmit Kapila <[email protected]>
Thu, 22 Feb 2024 05:47:00 +0000 (11:17 +0530)
commit801792e528d6cb5eeb3a70f5ceb10b15bf92f0c7
tree9f392ba3173275c6e6bb97ad3eb42ba20c43a1b2
parent011d60c4352c5c48c0f1a185e8a12833c22a58db
Improve ERROR/LOG messages added by commits ddd5f4f54a and 7a424ece48.

Additionally, in slotsync.c, replace one StringInfoData variable usage
with a constant string to avoid palloc/pfree. Also, replace the inclusion
of "logical.h" with "slot.h" to prevent the exposure of unnecessary
implementation details.

Reported-by: Kyotaro Horiguchi, Masahiko Sawada
Author: Shveta Malik based on suggestions by Robert Haas and Amit Kapila
Reviewed-by: Kyotaro Horiguchi, Amit Kapila
Discussion: https://postgr.es/m/20240214.162652.773291409747353211[email protected]
Discussion: https://postgr.es/m/20240219.134015.1888940527023074780[email protected]
Discussion: https://postgr.es/m/CAD21AoCYXhDYOQDAS-rhGasC2T+tYbV=8Y18o94sB=5AxcW+yA@mail.gmail.com
src/backend/replication/logical/slotsync.c
src/test/recovery/t/040_standby_failover_slots_sync.pl