From c66e6ece6dcb8fb4c5587d1a9bc3043b76dff79b Mon Sep 17 00:00:00 2001 From: Artem Gavrilov Date: Fri, 29 Mar 2024 17:21:14 +0200 Subject: [PATCH] Cleanup --- t/007_settings_pgsm_query_shared_buffer.pl | 23 ---------------------- 1 file changed, 23 deletions(-) diff --git a/t/007_settings_pgsm_query_shared_buffer.pl b/t/007_settings_pgsm_query_shared_buffer.pl index cdbaa875..35ab0a68 100644 --- a/t/007_settings_pgsm_query_shared_buffer.pl +++ b/t/007_settings_pgsm_query_shared_buffer.pl @@ -132,29 +132,6 @@ ok($cmdret == 0, "SELECT XXX FROM pg_stat_monitor"); PGSM::append_to_file($stdout); -# $node->append_conf('postgresql.conf', "pg_stat_monitor.pgsm_query_shared_buffer = 10000\n"); # Max possible value -# $node->restart(); - -# ($cmdret, $stdout, $stderr) = $node->psql('postgres', 'SELECT pg_stat_monitor_reset();', extra_params => ['-a', '-Pformat=aligned','-Ptuples_only=off']); -# ok($cmdret == 0, "Reset PGSM EXTENSION"); -# PGSM::append_to_file($stdout); - -# ($cmdret, $stdout, $stderr) = $node->psql('postgres', "SELECT name, setting, unit, context, vartype, source, min_val, max_val, enumvals, boot_val, reset_val, pending_restart FROM pg_settings WHERE name='pg_stat_monitor.pgsm_query_shared_buffer';", extra_params => ['-a', '-Pformat=aligned','-Ptuples_only=off']); -# ok($cmdret == 0, "Print PGSM EXTENSION Settings"); -# PGSM::append_to_file($stdout); - -# $out = system ("pgbench -i -s 10 -p $port example"); -# print " out: $out \n"; -# ok($cmdret == 0, "Perform pgbench init"); - -# $out = system ("pgbench -c 10 -j 2 -t 1000 -p $port example"); -# print " out: $out \n"; -# ok($cmdret == 0, "Run pgbench"); - -# ($cmdret, $stdout, $stderr) = $node->psql('postgres', 'SELECT datname, substr(query,0,150) AS query, SUM(calls) AS calls FROM pg_stat_monitor GROUP BY datname, query ORDER BY datname, query, calls DESC Limit 20;', extra_params => ['-a', '-Pformat=aligned','-Ptuples_only=off']); -# ok($cmdret == 0, "SELECT XXX FROM pg_stat_monitor"); -# PGSM::append_to_file($stdout); - # DROP EXTENSION $stdout = $node->safe_psql('postgres', 'DROP EXTENSION pg_stat_monitor;', extra_params => ['-a']); ok($cmdret == 0, "DROP PGSM EXTENSION");