Fixes and formatting
parent
fd8864dba3
commit
122a30c82b
|
@ -2082,8 +2082,9 @@ pg_stat_monitor_internal(FunctionCallInfo fcinfo,
|
||||||
expected_columns = PG_STAT_MONITOR_COLS_V2_1;
|
expected_columns = PG_STAT_MONITOR_COLS_V2_1;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
// TODO error?
|
ereport(ERROR,
|
||||||
break;
|
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
|
||||||
|
errmsg("[pg_stat_monitor] pg_stat_monitor_internal: Unknown API version")));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Disallow old api usage */
|
/* Disallow old api usage */
|
||||||
|
|
|
@ -83,7 +83,7 @@ if ($PGSM::PG_MAJOR_VERSION >= 17)
|
||||||
trim($stdout);
|
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 get 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']);
|
||||||
|
|
Loading…
Reference in New Issue