summaryrefslogtreecommitdiff
path: root/src/tutorial
diff options
context:
space:
mode:
authorNathan Bossart <nathan@postgresql.org>2025-11-12 14:30:11 -0600
committerNathan Bossart <nathan@postgresql.org>2025-11-12 14:30:11 -0600
commit1165a933aab1355757a43cfd9193b6cce06f573b (patch)
tree6b7288e19f1ade27d9983298b95a1ca6ab431e9f /src/tutorial
parent0bdc777e80071abd77674f1e66258d410a010aa9 (diff)
Teach DSM registry to ERROR if attaching to an uninitialized entry.
If DSM entry initialization fails, backends could try to use an uninitialized DSM segment, DSA, or dshash table (since the entry is still added to the registry). To fix, keep track of whether initialization completed, and ERROR if a backend tries to attach to an uninitialized entry. We could instead retry initialization as needed, but that seemed complicated, error prone, and unlikely to help most cases. Furthermore, such problems probably indicate a coding error. Reported-by: Alexander Lakhin <exclusion@gmail.com> Reviewed-by: Sami Imseih <samimseih@gmail.com> Discussion: https://postgr.es/m/dd36d384-55df-4fc2-825c-5bc56c950fa9%40gmail.com Backpatch-through: 17
Diffstat (limited to 'src/tutorial')
0 files changed, 0 insertions, 0 deletions