Skip to content

Commit 3efc82e

Browse files
committed
Disable debug_discard_caches in test_oat_hooks test.
The test output varies when debug_discard_caches is enabled, because that causes extra executions of recomputeNamespacePath. Maybe putting a hook in that was a bad idea, but as a stopgap, just turn off debug_discard_caches in this test. Per buildfarm (now that we have debug_discard_caches coverage again). Back-patch to v15 where this module was added. Discussion: https://postgr.es/m/2267406.1668804934@sss.pgh.pa.us
1 parent 3b8ad00 commit 3efc82e

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/test/modules/test_oat_hooks/expected/test_oat_hooks.out

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
-- This test script fails if debug_discard_caches is enabled, because cache
2+
-- flushes cause extra calls of the OAT hook in recomputeNamespacePath,
3+
-- resulting in more NOTICE messages than are in the expected output.
4+
SET debug_discard_caches = 0;
15
-- Creating privileges on a placeholder GUC should create entries in the
26
-- pg_parameter_acl catalog which conservatively grant no privileges to public.
37
CREATE ROLE regress_role_joe;

src/test/modules/test_oat_hooks/sql/test_oat_hooks.sql

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
-- This test script fails if debug_discard_caches is enabled, because cache
2+
-- flushes cause extra calls of the OAT hook in recomputeNamespacePath,
3+
-- resulting in more NOTICE messages than are in the expected output.
4+
SET debug_discard_caches = 0;
5+
16
-- Creating privileges on a placeholder GUC should create entries in the
27
-- pg_parameter_acl catalog which conservatively grant no privileges to public.
38
CREATE ROLE regress_role_joe;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy