postgresql/src/test/modules/brin
Álvaro Herrera 6ef33c8051
BRIN autosummarization may need a snapshot
It's possible to define BRIN indexes on functions that require a
snapshot to run, but the autosummarization feature introduced by commit
7526e10224 fails to provide one.  This causes autovacuum to leave a
BRIN placeholder tuple behind after a failed work-item execution, making
such indexes less efficient.  Repair by obtaining a snapshot prior to
running the task, and add a test to verify this behavior.

Author: Álvaro Herrera <alvherre@kurilemu.de>
Reported-by: Giovanni Fabris <giovanni.fabris@icon.it>
Reported-by: Arthur Nascimento <tureba@gmail.com>
Backpatch-through: 13
Discussion: https://postgr.es/m/202511031106.h4fwyuyui6fz@alvherre.pgsql
2025-11-04 13:23:26 +01:00
..
expected Show empty BRIN ranges in brin_page_items 2023-05-19 02:00:21 +02:00
specs Fix handling of empty ranges and NULLs in BRIN 2023-05-19 01:29:44 +02:00
t BRIN autosummarization may need a snapshot 2025-11-04 13:23:26 +01:00
.gitignore Add a couple of missed .gitignore entries. 2020-12-18 16:24:49 -05:00
Makefile BRIN: mask BRIN_EVACUATE_PAGE for WAL consistency checking 2022-08-05 18:00:17 +02:00
meson.build Update copyright for 2023 2023-01-02 15:00:37 -05:00