相关疑难解决方法(0)

PostgreSQL:从 psql 参数设置

按照这个关于限制 PostgreSQL 中每个查询的资源的答案,我被建议为查询执行设置超时值

SET statement_timeout TO '1min';
Run Code Online (Sandbox Code Playgroud)

这很好,但有时我想放宽对特定脚本的限制。

  • 有没有办法将超时设置为psql参数?我试过了psql --set statement_timeout=50,不成功。
  • 有没有办法从使用 psycopg2 的 Python 脚本中设置它?

postgresql performance ubuntu

8
推荐指数
1
解决办法
4626
查看次数

标签 统计

performance ×1

postgresql ×1

ubuntu ×1