Skip to content

feat(checkpoint-postgres):add prepare_threshold parameter for connection pooler support#6710

Open
DineshThumma9 wants to merge 2 commits intolangchain-ai:mainfrom
DineshThumma9:threshold-param-postgres
Open

feat(checkpoint-postgres):add prepare_threshold parameter for connection pooler support#6710
DineshThumma9 wants to merge 2 commits intolangchain-ai:mainfrom
DineshThumma9:threshold-param-postgres

Conversation

@DineshThumma9
Copy link

@DineshThumma9 DineshThumma9 commented Jan 22, 2026

Description:

When using AsyncPostgresSaver.from_conn_string() with external connection poolers (e.g., Google Cloud SQL connection pooler, PgBouncer in transaction mode), users encounter "prepared statement does not exist" errors:

Solution:
Exposed configurable prepare_threshold to PostgresSaver classes to fix 'prepared statement does not exist' errors with external connection poolers (PgBouncer, Google Cloud SQL).

Issue
Fixes #6705

DineshThumma9 and others added 2 commits January 22, 2026 20:28
Add configurable prepare_threshold to PostgresSaver classes to fix
'prepared statement does not exist' errors with external connection
poolers (PgBouncer, Google Cloud SQL).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant