aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/jsonpath.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2023-07-31 17:09:24 +0900
committerMichael Paquier <michael@paquier.xyz>2023-07-31 17:09:24 +0900
commitc9af054653077699189884c336a65e23a7c8aebb (patch)
tree7c58a0dc246c3b432f6169236db0cc1688e63e92 /src/backend/utils/adt/jsonpath.c
parent39055cb4ccd5b521ceb802b6a8194de912a422cc (diff)
downloadpostgresql-c9af054653077699189884c336a65e23a7c8aebb.tar.gz
postgresql-c9af054653077699189884c336a65e23a7c8aebb.zip
Support custom wait events for wait event type "Extension"
Two backend routines are added to allow extension to allocate and define custom wait events, all of these being allocated in the type "Extension": * WaitEventExtensionNew(), that allocates a wait event ID computed from a counter in shared memory. * WaitEventExtensionRegisterName(), to associate a custom string to the wait event ID allocated. Note that this includes an example of how to use this new facility in worker_spi with tests in TAP for various scenarios, and some documentation about how to use them. Any code in the tree that currently uses WAIT_EVENT_EXTENSION could switch to this new facility to define custom wait events. This is left as work for future patches. Author: Masahiro Ikeda Reviewed-by: Andres Freund, Michael Paquier, Tristan Partin, Bharath Rupireddy Discussion: https://postgr.es/m/b9f5411acda0cf15c8fbb767702ff43e@oss.nttdata.com
Diffstat (limited to 'src/backend/utils/adt/jsonpath.c')
0 files changed, 0 insertions, 0 deletions