You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just tried the default docker image with Digital Ocean's hosted Postgres (which recommends using connection pools), and ran into the error "Prepared statement ... already exists" when repeating the same query.
@benjie quickly pointed out the following on Discord:
PostGraphile uses prepared statements as a minor performance optimisation, but this causes issues if you’re running external connection pools in addition to PostGraphile’s native connection pooling. You can disable prepared statements by setting the environment variable POSTGRAPHILE_PREPARED_STATEMENT_CACHE_SIZE=0
In my case, since PostGraphile already has connection pools built-in, I just connected directly to the database rather than the Postgres connection pool, and everything works fine.
I wasn't sure where this might go in the documentation, so just quickly posting this as an issue in case it helps anyone.
The text was updated successfully, but these errors were encountered:
saintsal
changed the title
Error: "Prepared statement ... already exists" when repeating query
[Solved] Error: "Prepared statement ... already exists" when repeating query
Jul 3, 2021
I just tried the default docker image with Digital Ocean's hosted Postgres (which recommends using connection pools), and ran into the error "Prepared statement ... already exists" when repeating the same query.
@benjie quickly pointed out the following on Discord:
In my case, since PostGraphile already has connection pools built-in, I just connected directly to the database rather than the Postgres connection pool, and everything works fine.
I wasn't sure where this might go in the documentation, so just quickly posting this as an issue in case it helps anyone.
The text was updated successfully, but these errors were encountered: