From 1547e213cf366c7ee399d0e9a3bf1b9c5e6764c2 Mon Sep 17 00:00:00 2001 From: Ekaterina Sokolova Date: Fri, 12 Apr 2024 13:02:05 +0300 Subject: [PATCH] [PGPRO-10083] Set guc to false in python test. pg_query_state.enable_timing and enable_buffers default to false. But we should forcefully set guc variables to false in case of its true values in the configuration file. Tags: pg_query_state. --- tests/test_cases.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_cases.py b/tests/test_cases.py index f86641d..c866f58 100644 --- a/tests/test_cases.py +++ b/tests/test_cases.py @@ -379,6 +379,9 @@ def test_timing_buffers_conflicts(config): timing_pattern = '(?:running time=\d+.\d+)|(?:actual time=\d+.\d+..\d+.\d+)' buffers_pattern = 'Buffers:' + common.set_guc(acon, 'pg_query_state.enable_timing', 'off') + common.set_guc(acon, 'pg_query_state.enable_buffers', 'off') + qs, notices = common.onetime_query_state(config, acon, query, {'timing': True, 'buffers': False}) assert len(qs) == 1 and not re.search(timing_pattern, qs[0][3]) assert notices == ['WARNING: timing statistics disabled\n'] 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