forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit408209d
committed
Avoid edge case in pg_visibility test with small shared_buffers
Since82a4eda we can bulk extend relations. The bulk relation extensionlogic has a heuristic component. Normally the heurstic does not trigger in theoccasionally-failing test case, as the relation is only extended once. Butwith very small shared_buffers the limits for the number of buffers pinned atonce prevent the extension from happening at once. With the second "bulk"extension, the heuristic kicks in, and the relation ends up one block bigger.That's ok from a correctness perspective, but changes the results of the testquery due to one additional block.We discussed a few more expansive fixes, but for now have decided to avoidthis by making the table a bit smaller.Author: Heikki Linnakangas <hlinnaka@iki.fi>Reported-by:Discussion:https://postgr.es/m/29c74104-210b-ef39-2522-27a6aa7a704f@iki.fiDiscussion:https://postgr.es/m/20230916000011.2ugpkkkp7bpp4cfh@awork3.anarazel.deBackpatch: 16-, where the new relation extension logic was added1 parent90677b5 commit408209d
File tree
2 files changed
+1
-8
lines changed- contrib/pg_visibility
- expected
- sql
2 files changed
+1
-8
lines changedLines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
217 | 217 |
| |
218 | 218 |
| |
219 | 219 |
| |
220 |
| - | |
221 |
| - | |
| 220 | + | |
222 | 221 |
| |
223 | 222 |
| |
224 | 223 |
| |
|
Lines changed: 0 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
108 | 108 |
| |
109 | 109 |
| |
110 | 110 |
| |
111 |
| - | |
112 |
| - | |
113 |
| - | |
114 |
| - | |
115 |
| - | |
116 |
| - | |
117 | 111 |
| |
118 | 112 |
| |
119 | 113 |
| |
|
0 commit comments
Comments
(0)