diff options
author | Michael Paquier <michael@paquier.xyz> | 2023-01-12 13:41:22 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2023-01-12 13:41:22 +0900 |
commit | 6f25e48774fe9302ca08dae07420df95998d792a (patch) | |
tree | 2ea48224f9895ce2bb8ab9108f160ff21c99a0a2 /src/backend/executor/nodeModifyTable.c | |
parent | 38255f2d0059a101c3fb791d6523a9e66e55aa66 (diff) | |
download | postgresql-6f25e48774fe9302ca08dae07420df95998d792a.tar.gz postgresql-6f25e48774fe9302ca08dae07420df95998d792a.zip |
Acquire spinlock when updating 2PC slot data during logical decoding creation
The creation of a logical decoding context in CreateDecodingContext()
updates some data of its slot for two-phase transactions if enabled by
the caller, but the code forgot to acquire a spinlock when updating
these fields like any other code paths. This could lead to the read of
inconsistent data.
Oversight in a8fd13c.
Author: Sawada Masahiko
Discussion: https://postgr.es/m/CAD21AoAD8_fp47191LKuecjDd3DYhoQ4TaucFco1_TEr_jQ-Zw@mail.gmail.com
Backpatch-through: 15
Diffstat (limited to 'src/backend/executor/nodeModifyTable.c')
0 files changed, 0 insertions, 0 deletions