pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Avoid useless ReplicationOriginExitCleanup locking
Date: Mon, 15 Jan 2024 12:03:03 +0000
Message-ID: <E1rPLgF-001XXQ-3z@gemulon.postgresql.org> (raw)

Avoid useless ReplicationOriginExitCleanup locking

When session_replication_state is NULL, we can know there's nothing to
do with no lock acquisition.  Do that.

Author: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Discussion: https://postgr.es/m/CALj2ACX+YaeRU5xJqR4C7kLsTO_F7DBRNF8WgeHvJZcKtNuK_A@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/aa817c7496575b37fde6ea5e0cd65b26f29ea532

Modified Files
--------------
src/backend/replication/logical/origin.c | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)



Message-ID: <E1rPLgF-001XXQ-3z@gemulon.postgresql.org>
Permalink:  ../E1rPLgF-001XXQ-3z@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1rPLgF-001XXQ-3z@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: alvherre@alvh.no-ip.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Avoid useless ReplicationOriginExitCleanup locking
  In-Reply-To: <E1rPLgF-001XXQ-3z@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox