pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Use atomics to avoid locking in InjectionPointRun()
Date: Mon, 15 Jul 2024 07:55:12 +0000
Message-ID: <E1sTGYC-001jGY-RK@gemulon.postgresql.org> (raw)

Use atomics to avoid locking in InjectionPointRun()

This allows using injection points without having a PGPROC, like early
at backend startup, or in the postmaster.

The injection points facility is new in v17, so backpatch there.

Reviewed-by: Michael Paquier <michael@paquier.xyz>
Disussion: https://www.postgresql.org/message-id/4317a7f7-8d24-435e-9e49-29b72a3dc418@iki.fi

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/86db52a5062a77c6ee533586be2cef8672a20c7d

Modified Files
--------------
src/backend/utils/misc/injection_point.c | 404 +++++++++++++++++++++----------
src/tools/pgindent/typedefs.list         |   1 +
2 files changed, 281 insertions(+), 124 deletions(-)



view thread (2+ messages)  latest in thread

Message-ID: <E1sTGYC-001jGY-RK@gemulon.postgresql.org>
Permalink:  ../E1sTGYC-001jGY-RK@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1sTGYC-001jGY-RK@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: heikki.linnakangas@iki.fi, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Use atomics to avoid locking in InjectionPointRun()
  In-Reply-To: <E1sTGYC-001jGY-RK@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