Prepared statements - psycopg3, psycopg2 #995
-
The current psycopg3 documentation says:
The current pgbouncer documentation says:
Is the psycopg3 documentation outdated now? Is pgbouncer known to work with it? Also, I take it, psycopg2 doesn't do protocol-level prepared statements at all, correct? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Psycopg3 docs are outdated now. However, it's not completely working with PgBouncer at the moment. The reason is that to close prepared statements it uses the DEALLOCATE sql command. You can disable the deallocation behaviour in psycopg by setting Related links:
|
Beta Was this translation helpful? Give feedback.
Psycopg3 docs are outdated now. However, it's not completely working with PgBouncer at the moment. The reason is that to close prepared statements it uses the DEALLOCATE sql command.
You can disable the deallocation behaviour in psycopg by setting
prepare_threshold
tofloat('inf')
(or some very high number).Related links: