pgsql: Use atomics to avoid locking in InjectionPointRun()

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема pgsql: Use atomics to avoid locking in InjectionPointRun()
Дата
Msg-id E1sTGYC-001jGY-RK@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Fujii Masao
Дата:
Сообщение: pgsql: Fix unstable tests in partition_merge.sql and partition_split.sq
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: pgsql: Use correct type for pq_mq_parallel_leader_proc_number variable