aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/jsonb_util.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2024-07-26 14:55:04 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2024-07-26 15:12:12 +0300
commitf19beba3e3acfd804d678af3f768bee069038486 (patch)
treee751294fe470e4bc080f2458eb04d3a347518b08 /src/backend/utils/adt/jsonb_util.c
parentf06a632a77ed27aab087d62bd76bc52be3a2ac6f (diff)
downloadpostgresql-f19beba3e3acfd804d678af3f768bee069038486.tar.gz
postgresql-f19beba3e3acfd804d678af3f768bee069038486.zip
Fix using injection points at backend startup in EXEC_BACKEND mode
Commit 86db52a506 changed the locking of injection points to use only atomic ops and spinlocks, to make it possible to define injection points in processes that don't have a PGPROC entry (yet). However, it didn't work in EXEC_BACKEND mode, because the pointer to shared memory area was not initialized until the process "attaches" to all the shared memory structs. To fix, pass the pointer to the child process along with other global variables that need to be set up early. Backpatch-through: 17
Diffstat (limited to 'src/backend/utils/adt/jsonb_util.c')
0 files changed, 0 insertions, 0 deletions