pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Use atomics to avoid locking in InjectionPointRun()
2+ messages / 1 participants
[nested] [flat]

* pgsql: Use atomics to avoid locking in InjectionPointRun()
@ 2024-07-15 07:55 Heikki Linnakangas <heikki.linnakangas@iki.fi>
  0 siblings, 0 replies; 2+ messages in thread

From: Heikki Linnakangas @ 2024-07-15 07:55 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Use atomics to avoid locking in InjectionPointRun()
@ 2024-07-15 07:55 Heikki Linnakangas <heikki.linnakangas@iki.fi>
  0 siblings, 0 replies; 2+ messages in thread

From: Heikki Linnakangas @ 2024-07-15 07:55 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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
------
REL_17_STABLE

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

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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2024-07-15 07:55 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2024-07-15 07:55 pgsql: Use atomics to avoid locking in InjectionPointRun() Heikki Linnakangas <heikki.linnakangas@iki.fi>
2024-07-15 07:55 pgsql: Use atomics to avoid locking in InjectionPointRun() Heikki Linnakangas <heikki.linnakangas@iki.fi>

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