Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
artemgavrilov committed Mar 29, 2024
1 parent a86d36d commit c66e6ec
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions t/007_settings_pgsm_query_shared_buffer.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit c66e6ec

Please sign in to comment.