似乎某些查询花费的时间太长,我想让客户端等待查询结果的时间更长?
1 回答
1
默认情况下没有语句超时:
yugabyte=# show statement_timeout;
statement_timeout
-------------------
0
(1 row)
yugabyte=# select pg_sleep(2);
pg_sleep
----------
(1 row)
yugabyte=# set statement_timeout to 1000;
SET
yugabyte=# select pg_sleep(2);
ERROR: canceling statement due to statement timeout
你能告诉我你遇到了什么错误吗?
于 2020-03-16T14:15:07.273 回答