aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/xml.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2024-01-29 13:46:22 +0200
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2024-01-29 13:46:22 +0200
commit6a1ea02c491d16474a6214603dce40b5b122d4d1 (patch)
treea8c818a30b8cb44871afda52321673e93294af54 /src/backend/utils/adt/xml.c
parent6d4565a05f3fb9b7a439e7ecfc2be68bf4dabf48 (diff)
downloadpostgresql-6a1ea02c491d16474a6214603dce40b5b122d4d1.tar.gz
postgresql-6a1ea02c491d16474a6214603dce40b5b122d4d1.zip
Fix locking when fixing an incomplete split of a GIN internal page
ginFinishSplit() expects the caller to hold an exclusive lock on the buffer, but when finishing an earlier "leftover" incomplete split of an internal page, the caller held a shared lock. That caused an assertion failure in MarkBufferDirty(). Without assertions, it could lead to corruption if two backends tried to complete the split at the same time. On master, add a test case using the new injection point facility. Report and analysis by Fei Changhong. Backpatch the fix to all supported versions. Reviewed-by: Fei Changhong, Michael Paquier Discussion: https://www.postgresql.org/message-id/tencent_A3CE810F59132D8E230475A5F0F7A08C8307@qq.com
Diffstat (limited to 'src/backend/utils/adt/xml.c')
0 files changed, 0 insertions, 0 deletions