Обсуждение: pgsql: Use atomics to avoid locking in InjectionPointRun()

Поиск
Список
Период
Сортировка

pgsql: Use atomics to avoid locking in InjectionPointRun()

От
Heikki Linnakangas
Дата:
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(-)