I’m trying to configure LangGraph to use a custom PostgreSQL database for persistence, based on the documented environment variable POSTGRES_URI_CUSTOM.
According to the docs:
https://docs.langchain.com/langsmith/env-var#postgres-uri-custom
Specify POSTGRES_URI_CUSTOM to use a custom Postgres instance instead of one provisioned by the platform.
However, even when POSTGRES_URI_CUSTOM is set correctly, LangGraph continues to start with the in-memory runtime.
Example log:
Using langgraph_runtime_inmem
Starting In-Memory runtime with langgraph-api=0.5.16
This happens consistently in local development (langgraph dev / API server).