Hi,
On August 24, 2020 7:38:39 PM PDT, Masahiko Sawada <masahiko.sawada@2ndquadrant.com> wrote:
>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.
Why is it worth doing so?
Regards,
Andres
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.