Hi all, While testing with DTrace, I realized we acquire ReplicationSlotControl lwlock at some places even when max_replication_slots is set to 0. For instance, we call ReplicationSlotCleanup() within PostgresMian() when an error happens and acquire ReplicationSlotControl lwlock.
The attached patch fixes some functions so that we quickly return if max_replication_slots is set to 0. Regards, -- Masahiko Sawada http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
avoid_replicationslotcontrol.patch
Description: Binary data