{"record":{"id":"d6c1038e1168927f","repo":"langchain-ai/langgraph","slug":"shallowpostgressaver-is-deprecated-as-of-version-2","errorCode":null,"errorMessage":"ShallowPostgresSaver is deprecated as of version 2.0.20 and will be removed in 3.0.0. Use PostgresSaver instead, and invoke the graph with `graph.invoke(..., durability='exit')`.","messagePattern":"ShallowPostgresSaver is deprecated as of version 2\\.0\\.20 and will be removed in 3\\.0\\.0\\. Use PostgresSaver instead, and invoke the graph with `graph\\.invoke\\(\\.\\.\\., durability='exit'\\)`\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"libs/checkpoint-postgres/langgraph/checkpoint/postgres/shallow.py","lineNumber":192,"sourceCode":"    supports most of the LangGraph persistence functionality with the exception of time travel.\n    \"\"\"\n\n    SELECT_SQL = SELECT_SQL\n    MIGRATIONS = MIGRATIONS\n    UPSERT_CHECKPOINT_BLOBS_SQL = UPSERT_CHECKPOINT_BLOBS_SQL\n    UPSERT_CHECKPOINTS_SQL = UPSERT_CHECKPOINTS_SQL\n    UPSERT_CHECKPOINT_WRITES_SQL = UPSERT_CHECKPOINT_WRITES_SQL\n    INSERT_CHECKPOINT_WRITES_SQL = INSERT_CHECKPOINT_WRITES_SQL\n\n    lock: threading.Lock\n\n    def __init__(\n        self,\n        conn: _internal.Conn,\n        pipe: Pipeline | None = None,\n        serde: SerializerProtocol | None = None,\n    ) -> None:\n        warnings.warn(\n            \"ShallowPostgresSaver is deprecated as of version 2.0.20 and will be removed in 3.0.0. \"\n            \"Use PostgresSaver instead, and invoke the graph with `graph.invoke(..., durability='exit')`.\",\n            DeprecationWarning,\n            stacklevel=2,\n        )\n        super().__init__(serde=serde)\n        if isinstance(conn, ConnectionPool) and pipe is not None:\n            raise ValueError(\n                \"Pipeline should be used only with a single Connection, not ConnectionPool.\"\n            )\n\n        self.conn = conn\n        self.pipe = pipe\n        self.lock = threading.Lock()\n        self.supports_pipeline = Capabilities().has_pipeline()\n\n    @classmethod\n    @contextmanager","sourceCodeStart":174,"sourceCodeEnd":210,"githubUrl":"https://github.com/langchain-ai/langgraph/blob/38031739e551638e373fb553453256c23feeb41f/libs/checkpoint-postgres/langgraph/checkpoint/postgres/shallow.py#L174-L210","documentation":"Error \"ShallowPostgresSaver is deprecated as of version 2.0.20 and will be removed in 3.0.0. Use PostgresSaver instead, and invoke the graph with `graph.invoke(..., durability='exit')`.\" thrown in langchain-ai/langgraph.","triggerScenarios":"Thrown at libs/checkpoint-postgres/langgraph/checkpoint/postgres/shallow.py:192 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"38031739e551638e373fb553453256c23feeb41f","analyzedAt":"2026-08-26T18:02:49.312Z","schemaVersion":2},"datasetVersion":"2026-08-26T21:11:00.512Z"}