From: Masahiro Ikeda Date: Thu, 15 Jun 2023 13:16:00 +0900 Subject: [PATCH 3/3] Add docs to define custom wait events > + > + wait events are reserved by calling: > + > +void RequestNamedExtensionWaitEventTranche(const char *tranche_name) > + > + from your shmem_request_hook. This will ensure = that > + wait event is available under the name tranche_name, > + which the wait event type is Extension. > + Use GetNamedExtensionWaitEventTranche > + to get a wait event information. > + > + > + To avoid possible race-conditions, each backend should use the LWLo= ck > + AddinShmemInitLock when connecting to and init= ializing > + its allocation of shared memory, same as LWLocks reservations above= . > + Should "wait" be capitalized in the first sentence? "This will ensure that wait event is available" should have an "a" before "wait". Nice patch. --=20 Tristan Partin Neon (https://neon.tech)