Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instability of pg_hint_plan.sql test in PG16 + master on a slow box (or when testing with valgrind). #161

Open
svglukhov opened this issue Oct 7, 2023 · 1 comment

Comments

@svglukhov
Copy link

Hi,

There is an instability of pg_hint_plan.sql test in PG16 + master
on a slow box (or when testing with valgrind).

How to repeat: run make installcheck with the postgres under valgrind.

cat regression.diffs
diff -U3 contrib/pg_hint_plan/expected/pg_hint_plan.out contrib/pg_hint_plan/results/pg_hint_plan.out
--- contrib/pg_hint_plan/expected/pg_hint_plan.out
+++ contrib/pg_hint_plan/results/pg_hint_plan.out
@@ -9145,7 +9145,7 @@

relname | seq_scan | idx_scan
---------+----------+----------

  • t1 | f | f
  • t1 | f | t
    (1 row)

-- hint error level

Suggested fix is in the attachment.

Regards,
Gluh

fix-test-instability.txt

@michaelpq
Copy link
Collaborator

It is a very bad idea to penalize the tests with some hardcoded pg_sleep() calls that would make the tests even slower for everybody. IMO, we should redesign the tests so as the existing sleeps are avoided as much as possible, as this is already the slowest part of them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants