how to set postgres statement_timeout
xxxxxxxxxx
set statement_timeout = '60 s'; -- 60 seconds
this will set the statement_timeout to 60 seconds, just adjust the number to increase or decrease the time-out
xxxxxxxxxx
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: