aboutsummaryrefslogtreecommitdiff
path: root/src/include/postgres_ext.h
diff options
context:
space:
mode:
authorNathan Bossart <nathan@postgresql.org>2024-10-28 16:44:31 -0500
committerNathan Bossart <nathan@postgresql.org>2024-10-28 16:44:31 -0500
commit70b9adb98eab42bc12ddeea863be335b21b55675 (patch)
tree739b33d41148acf62387cf8bad2882002134d27c /src/include/postgres_ext.h
parent11b7de4a784135d7a9bce4a29ede092797749efc (diff)
downloadpostgresql-70b9adb98eab42bc12ddeea863be335b21b55675.tar.gz
postgresql-70b9adb98eab42bc12ddeea863be335b21b55675.zip
Ensure we have a snapshot when updating pg_index in index_drop().
I assumed that all index_drop() callers set an active snapshot beforehand, but that is evidently not true. One counterexample is autovacuum, which doesn't set an active snapshot when cleaning up orphan temp indexes. To fix, unconditionally push an active snapshot before updating pg_index in index_drop(). Oversight in commit b52adbad46. Reported-by: Masahiko Sawada Reviewed-by: Stepan Neretin, Masahiko Sawada Discussion: https://postgr.es/m/CAD21AoBgF9etQrXbN9or_YHsmBRJHHNUEkhHp9rGK9CyQv5aTQ%40mail.gmail.com
Diffstat (limited to 'src/include/postgres_ext.h')
0 files changed, 0 insertions, 0 deletions