pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Improve stability of tests for VACUUM (SKIP_LOCKED) 2+ messages / 1 participants [nested] [flat]
* pgsql: Improve stability of tests for VACUUM (SKIP_LOCKED) @ 2019-11-16 06:24 Michael Paquier <michael@paquier.xyz> 0 siblings, 0 replies; 2+ messages in thread From: Michael Paquier @ 2019-11-16 06:24 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Improve stability of tests for VACUUM (SKIP_LOCKED) Concurrent autovacuums running with the main regression test suite could cause the tests with VACUUM (SKIP_LOCKED) to generate randomly WARNING messages. For these tests, set client_min_messages to ERROR to get rid of those random failures, as disabling autovacuum for the relations operated would not completely close the failure window. For isolation tests, disable autovacuum for the relations vacuumed with SKIP_LOCKED. The tests are designed so as LOCK commands are taken in a first session before running a concurrent VACUUM (SKIP_LOCKED) in a second to generate WARNING messages, but a concurrent autovacuum could cause the tests to be slower. Reported-by: Tom Lane Author: Michael Paquier Reviewed-by: Andres Freund, Tom Lane Discussion: https://postgr.es/m/25294.1573077278@sss.pgh.pa.us Backpatch-through: 12 Branch ------ REL_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/bbaa38e824236ac106fffbf5f61e5da9b3dc1ec9 Modified Files -------------- src/test/isolation/specs/vacuum-skip-locked.spec | 2 ++ src/test/regress/expected/vacuum.out | 5 ++++- src/test/regress/sql/vacuum.sql | 5 ++++- 3 files changed, 10 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Improve stability of tests for VACUUM (SKIP_LOCKED) @ 2019-11-16 06:24 Michael Paquier <michael@paquier.xyz> 0 siblings, 0 replies; 2+ messages in thread From: Michael Paquier @ 2019-11-16 06:24 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Improve stability of tests for VACUUM (SKIP_LOCKED) Concurrent autovacuums running with the main regression test suite could cause the tests with VACUUM (SKIP_LOCKED) to generate randomly WARNING messages. For these tests, set client_min_messages to ERROR to get rid of those random failures, as disabling autovacuum for the relations operated would not completely close the failure window. For isolation tests, disable autovacuum for the relations vacuumed with SKIP_LOCKED. The tests are designed so as LOCK commands are taken in a first session before running a concurrent VACUUM (SKIP_LOCKED) in a second to generate WARNING messages, but a concurrent autovacuum could cause the tests to be slower. Reported-by: Tom Lane Author: Michael Paquier Reviewed-by: Andres Freund, Tom Lane Discussion: https://postgr.es/m/25294.1573077278@sss.pgh.pa.us Backpatch-through: 12 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/3db0598d908f22435ab8138d1c76b971f17a5633 Modified Files -------------- src/test/isolation/specs/vacuum-skip-locked.spec | 2 ++ src/test/regress/expected/vacuum.out | 5 ++++- src/test/regress/sql/vacuum.sql | 5 ++++- 3 files changed, 10 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2019-11-16 06:24 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2019-11-16 06:24 pgsql: Improve stability of tests for VACUUM (SKIP_LOCKED) Michael Paquier <michael@paquier.xyz> 2019-11-16 06:24 pgsql: Improve stability of tests for VACUUM (SKIP_LOCKED) Michael Paquier <michael@paquier.xyz>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox