📜  statement_timeout postgres - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:48.493000             🧑  作者: Mango

代码示例1
set statement_timeout to 60000; commit;
show statement_timeout;

//That setting is in milliseconds, so that'll set the timeout to 1 minute. .psqlrc isn't used with -c nor -X invocations of psql, so that should allow you to get your interactive-mode timeout to 1 minute.
//You can then execute the following in psql to verify that the configuration has taken effect: