按照这个关于限制 PostgreSQL 中每个查询的资源的答案,我被建议为查询执行设置超时值:
SET statement_timeout TO '1min';
这很好,但有时我想放宽对特定脚本的限制。
psql
psql --set statement_timeout=50
postgresql performance ubuntu
performance ×1
postgresql ×1
ubuntu ×1