diff options
author | Daniel Gustafsson <dgustafsson@postgresql.org> | 2023-07-04 17:36:13 +0200 |
---|---|---|
committer | Daniel Gustafsson <dgustafsson@postgresql.org> | 2023-07-04 17:36:13 +0200 |
commit | eb27d3dc88879cb148ae0365394aae0ab84fa1a7 (patch) | |
tree | 1f4045c6c26714bd1e21da1b2918214531533f84 /src/backend/jit/llvm/llvmjit.c | |
parent | d431644b43fcce9b7c2f677db18452b0ee216b42 (diff) | |
download | postgresql-eb27d3dc88879cb148ae0365394aae0ab84fa1a7.tar.gz postgresql-eb27d3dc88879cb148ae0365394aae0ab84fa1a7.zip |
Fix assertion failure in snapshot building
Clear any potential stale next_phase_at value from the snapshot
builder which otherwise may trip an assertion check ensuring
that there is no next_phase_at value.
This can be reproduced by running 80 concurrent sessions like
the below where $c is a loop counter (assumes there has been
1..$c databases created) :
echo "
CREATE TABLE replication_example(id SERIAL PRIMARY KEY,
somedata int,
text varchar(120));
SELECT 'init' FROM
pg_create_logical_replication_slot('regression_slot_$c',
'test_decoding');
SELECT data FROM
pg_logical_slot_get_changes('regression_slot_$c', NULL,
NULL, 'include-xids', '0',
'skip-empty-xacts', '1');
" | psql -d regress_$c >>psql.log &
Backpatch down to v16.
Bug: #17695
Author: Masahiko Sawada <sawada.mshk@gmail.com>
Reviewed-by: Alexander Lakhin <exclusion@gmail.com>
Reported-by: bowenshi <zxwsbg@qq.com>
Discussion: https://postgr.es/m/17695-6be9277c9295985f@postgresql.org
Backpatch-through: v16
Diffstat (limited to 'src/backend/jit/llvm/llvmjit.c')
0 files changed, 0 insertions, 0 deletions