pgsql: Don't fail for > 1 walsenders in 019_replslot_limit, add debug m - Mailing list pgsql-committers

From Andres Freund
Subject pgsql: Don't fail for > 1 walsenders in 019_replslot_limit, add debug m
Date
Msg-id E1nYi3o-001i63-NA@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Don't fail for > 1 walsenders in 019_replslot_limit, add debug messages.

So far the first of the retries introduced in f28bf667f60 resolves the
issue. But I (Andres) am still suspicious that the start of the failures might
indicate a problem.

To reduce noise, stop reporting a failure if a retry resolves the problem. To
allow figuring out what causes the slow slot drop, add a few more debug
messages to ReplicationSlotDropPtr.

See also commit afdeff10526, fe0972ee5e6 and f28bf667f60.

Discussion: https://postgr.es/m/20220327213219.smdvfkq2fl74flow@alap3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/91c0570a791180aa3ff01d70eb16ed6c0d8283a3

Modified Files
--------------
src/backend/replication/slot.c            |  9 +++++++++
src/test/recovery/t/019_replslot_limit.pl | 10 +++++++---
2 files changed, 16 insertions(+), 3 deletions(-)


pgsql-committers by date:

Previous
From: Andres Freund
Date:
Subject: pgsql: Mark pg_stat_get_subscription_stats() strict.
Next
From: Peter Eisentraut
Date:
Subject: pgsql: Make JSON path numeric literals more correct