Answer the question
In order to leave comments, you need to log in
How to get rid of prepared statement error when working with PostgreSQL via PgBouncer?
Sometimes there is something like this error when trying to make a request in the code:
Invalid sql statement name: 7 ERROR: prepared statement "some name" does not exist
Answer the question
In order to leave comments, you need to log in
There is a feeling that PgBouncer prepares the expression to speed up the work on the first run, but after stopping execution somewhere in the middle and re-starting, PgBouncer still thinks that the expression should remain on the server, but the server no longer thinks so.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question