- Notifications
You must be signed in to change notification settings - Fork4.9k
Commitf8a1c1d
committed
Make GIN regression test stable.
Commit7f46eaf added the regression test which checks thatgin_clean_pending_list() cleans up the GIN pending list and returns >0.This usually works fine. But if autovacuum comes along and cleansthe list before gin_clean_pending_list() starts, the function mayreturn 0, and then the regression test may fail.To fix the problem, this commit disables autovacuum on the targetindex of gin_clean_pending_list() by setting autovacuum_enabledreloption to off when creating the table.Also this commit sets gin_pending_list_limit reloption to 4MB onthe target index. Otherwise when running "make installcheck" withsmall gin_pending_list_limit GUC, insertions of data may triggerthe cleanup of pending list before gin_clean_pending_list() startsand the function may return 0. This could cause the regression testto fail.Per buildfarm member spoonbill.Reported-By: Tom Lane1 parenta6897ef commitf8a1c1d
2 files changed
+6
-4
lines changedLines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 |
| - | |
8 |
| - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
9 | 10 |
| |
10 | 11 |
| |
11 | 12 |
| |
|
Lines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
8 |
| - | |
9 |
| - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
10 | 11 |
| |
11 | 12 |
| |
12 | 13 |
| |
|
0 commit comments
Comments
(0)