- Notifications
You must be signed in to change notification settings - Fork5.3k
Commitf0ad417
committed
BRIN autosummarization may need a snapshot
It's possible to define BRIN indexes on functions that require asnapshot to run, but the autosummarization feature introduced by commit7526e10 fails to provide one. This causes autovacuum to leave aBRIN placeholder tuple behind after a failed work-item execution, makingsuch indexes less efficient. Repair by obtaining a snapshot prior torunning 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: 13Discussion:https://postgr.es/m/202511031106.h4fwyuyui6fz@alvherre.pgsql1 parenta1b8b3b commitf0ad417
File tree
2 files changed
+37
-4
lines changed- src
- backend/postmaster
- test/modules/brin/t
2 files changed
+37
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2623 | 2623 | | |
2624 | 2624 | | |
2625 | 2625 | | |
| 2626 | + | |
2626 | 2627 | | |
| 2628 | + | |
2627 | 2629 | | |
2628 | 2630 | | |
2629 | 2631 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
27 | 39 | | |
28 | 40 | | |
29 | 41 | | |
30 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
31 | 47 | | |
32 | 48 | | |
33 | 49 | | |
| 50 | + | |
| 51 | + | |
34 | 52 | | |
35 | 53 | | |
36 | 54 | | |
37 | 55 | | |
38 | 56 | | |
39 | 57 | | |
40 | 58 | | |
41 | | - | |
| 59 | + | |
| 60 | + | |
42 | 61 | | |
43 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
44 | 75 | | |
0 commit comments
Comments
(0)