Skip to content
Discussion options

You must be logged in to vote

Short answer to my own question. Is yes they do but you need to use your own instance rather than the example in the docs with Postgres conn string. You need to setup the prepare_threshold to be None not 0. Setting to None completely disables prepare statements.

I reproduced this with a script and tested it.

#!/usr/bin/env python3
"""
Simple test for PostgresSaver with connection string.
Tests the "prepared statement already exists" error.
"""

import os
import sys
import logging
from langgraph.checkpoint.postgres import PostgresSaver
from langgraph.checkpoint.base import Checkpoint
from psycopg_pool import ConnectionPool

# Add config path
sys.path.append(os.path.join(os.path.dirname(__f…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lukajose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant