Skip to content

How to commit a query? #422

Answered by gajus
aengl asked this question in Q&A
Oct 10, 2022 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

When we upgraded from v24 to v30 we noticed that queries that run in a lambda that is terminated due to a timeout are rolled back, even though the queries are not part of a transaction.

I don't believe that is the case. If you submit a PR showing otherwise, this would be a bug.

In v24, the materialized view is always refreshed, even if it takes long enough that the lambda is terminated. In v30, the view no longer updates in cases where the lambda is terminated.

If the backend is terminated, then it is expected that the materialized view would fail. It is not rolling back – the action just does not complete.

It looks as if all queries are running in a transaction by default that is co…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@aengl
Comment options

@gajus
Comment options

Answer selected by gajus
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants