mirror of
https://github.com/percona/pg_stat_monitor.git
synced 2026-02-04 14:06:20 +00:00
Fix
This commit is contained in:
@@ -70,7 +70,7 @@ is($stdout,'t',"Check: local_blks_hit should not be 0.");
|
|||||||
trim($stdout);
|
trim($stdout);
|
||||||
is($stdout,'t',"Check: local_blks_dirtied should not be 0.");
|
is($stdout,'t',"Check: local_blks_dirtied should not be 0.");
|
||||||
|
|
||||||
if ($PGSM::PG_MAJOR_VERSION => 17)
|
if ($PGSM::PG_MAJOR_VERSION >= 17)
|
||||||
{
|
{
|
||||||
($cmdret, $stdout, $stderr) = $node->psql('postgres', 'SELECT SUM(PGSM.local_blk_write_time) != 0 FROM pg_stat_monitor AS PGSM WHERE PGSM.query LIKE \'%INSERT INTO t1%\'', extra_params => ['-Pformat=unaligned','-Ptuples_only=on']);
|
($cmdret, $stdout, $stderr) = $node->psql('postgres', 'SELECT SUM(PGSM.local_blk_write_time) != 0 FROM pg_stat_monitor AS PGSM WHERE PGSM.query LIKE \'%INSERT INTO t1%\'', extra_params => ['-Pformat=unaligned','-Ptuples_only=on']);
|
||||||
trim($stdout);
|
trim($stdout);
|
||||||
@@ -84,7 +84,7 @@ trim($stdout);
|
|||||||
is($stdout,'t',"Check: local_blks_hit should not be 0.");
|
is($stdout,'t',"Check: local_blks_hit should not be 0.");
|
||||||
|
|
||||||
# TODO: Find a way how to bypass cache and ger real block reads
|
# TODO: Find a way how to bypass cache and ger real block reads
|
||||||
# if ($PGSM::PG_MAJOR_VERSION => 17)
|
# if ($PGSM::PG_MAJOR_VERSION >= 17)
|
||||||
# {
|
# {
|
||||||
# ($cmdret, $stdout, $stderr) = $node->psql('postgres', 'SELECT SUM(PGSM.local_blk_read_time) != 0 FROM pg_stat_monitor AS PGSM WHERE PGSM.query LIKE \'%FROM t1%\';', extra_params => ['-Pformat=unaligned','-Ptuples_only=on']);
|
# ($cmdret, $stdout, $stderr) = $node->psql('postgres', 'SELECT SUM(PGSM.local_blk_read_time) != 0 FROM pg_stat_monitor AS PGSM WHERE PGSM.query LIKE \'%FROM t1%\';', extra_params => ['-Pformat=unaligned','-Ptuples_only=on']);
|
||||||
# trim($stdout);
|
# trim($stdout);
|
||||||
|
|||||||
Reference in New Issue
Block a user