摘要:
1.. 只读账号授权 # 超级用户登录数据库 create user ro_user password 'readonly'; # 设置Postgres数据库为只读的transaction alter user ro_user set default_transaction_read_only=on 阅读全文
摘要:
1.查下超过10 s的查询语句 select * From pg_stat_activity where query_start<=now()- interval'10 sec' and state not in ('idle') and pid<>pg_backend_pid() and quer 阅读全文