Skip to content

Postgrest Server Does'nt respond for DB error SQL Error [57014]: ERROR: canceling statement due to statement timeout . #3360

Discussion options

You must be logged in to vote

statement_timeout is 0 by default, i.e. it's disabled. https://postgresqlco.nf/doc/en/param/statement_timeout/

user=abc

Likely your abc user has a non 0 statement_timeout that's why you get the error. with your python client

Once you connect to PostgREST with a user that has statement_timeout set, you should get the same error.

Note: PostgREST has first class support for statement_timeout: https://postgrest.org/en/v12/references/transactions.html#impersonated-role-settings

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by wolfgangwalther
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #3359 on March 29, 2024 18:00.