Although the value of the "statement_timeout" parameter in the config file in one of my Postgresql databases is "0", there is a timeout period in my database. What is the reason for this?
config file: enter image description here
When I check the timeout period:
Note: I have changed the timeout on a user basis for now. But why do I see a timeout period of "90 seconds" even though my user does not have any timeout period and this value is "0" in my config file?
postgresql version: 13
2
Answers
If you want to know why you have a certain parameter setting, query
pg_settings
:Then you know where you have to change the setting.
Setting
statement_timeout
inpostgresql.conf
is not recommended because it would affect all sessions.The value of the
statement_timeout
parameter could be set as default in a specificROLE
, check this out: