Skip to content

Commit 45a1576

Browse files
feat(expr): implement dummy pg_stat_get_numscans function (#15642)
Signed-off-by: Runji Wang <[email protected]>
1 parent 9818580 commit 45a1576

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/frontend/src/binder/expr/function.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1300,6 +1300,7 @@ impl Binder {
13001300
("pg_get_partkeydef", raw_literal(ExprImpl::literal_null(DataType::Varchar))),
13011301
("pg_encoding_to_char", raw_literal(ExprImpl::literal_varchar("UTF8".into()))),
13021302
("has_database_privilege", raw_literal(ExprImpl::literal_bool(true))),
1303+
("pg_stat_get_numscans", raw_literal(ExprImpl::literal_bigint(0))),
13031304
("pg_backend_pid", raw(|binder, _inputs| {
13041305
// FIXME: the session id is not global unique in multi-frontend env.
13051306
Ok(ExprImpl::literal_int(binder.session_id.0))

0 commit comments

Comments
 (0)