- Notifications
You must be signed in to change notification settings - Fork5.2k
Commita95e3d8
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 parentc09a069 commita95e3d8
File tree
2 files changed
+44
-4
lines changed- src
- backend/postmaster
- test/modules/brin/t
2 files changed
+44
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2556 | 2556 | | |
2557 | 2557 | | |
2558 | 2558 | | |
| 2559 | + | |
2559 | 2560 | | |
| 2561 | + | |
2560 | 2562 | | |
2561 | 2563 | | |
2562 | 2564 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
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 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
34 | 57 | | |
35 | 58 | | |
36 | 59 | | |
37 | 60 | | |
38 | 61 | | |
39 | 62 | | |
40 | | - | |
41 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
42 | 79 | | |
43 | | - | |
| 80 | + | |
| 81 | + | |
44 | 82 | | |
45 | 83 | | |
46 | 84 | | |
0 commit comments
Comments
(0)