PostgreSQL Version: 9.3
We have online system which gets transnational data (approximately 15000 records per day).
We have table partitioning on date & time and have a PostgreSQL function to load the incoming request into the table.
Sometimes we see the error message
ERROR: 57014: canceling statement due to statement timeout
The client sends the request again after some time if not successful and on second try it gets recorded successfully. It seems this has to be something with table locks but I am not sure.
ALTER USER your_user SET statement_timeout=0and addVACUUM ANALYZE VERBOSE;?