pgsql: Disable vacuum page skipping in selected test cases.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Disable vacuum page skipping in selected test cases.
Дата
Msg-id E1l2Gg3-0003jO-30@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Disable vacuum page skipping in selected test cases.

By default VACUUM will skip pages that it can't immediately get
exclusive access to, which means that even activities as harmless
and unpredictable as checkpoint buffer writes might prevent a page
from being processed.  Ordinarily this is no big deal, but we have
a small number of test cases that examine the results of VACUUM's
processing and therefore will fail if the page of interest is skipped.
This seems to be the explanation for some rare buildfarm failures.
To fix, add the DISABLE_PAGE_SKIPPING option to the VACUUM commands
in tests where this could be an issue.

In passing, remove a duplicated query in pageinspect/sql/page.sql.

Back-patch as necessary (some of these cases are as old as v10).

Discussion: https://postgr.es/m/413923.1611006484@sss.pgh.pa.us

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/6a97ca31288d0fceff10a6c2c8dd3293de7c845c

Modified Files
--------------
contrib/pageinspect/expected/page.out            | 2 +-
contrib/pageinspect/sql/page.sql                 | 2 +-
contrib/pg_visibility/expected/pg_visibility.out | 6 +++---
contrib/pg_visibility/sql/pg_visibility.sql      | 6 +++---
4 files changed, 8 insertions(+), 8 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: pgsql: Fix bug in detecting concurrent page splits in GiST insert
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Further tweaking of PG_SYSROOT heuristics for macOS.