diff --git a/libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py b/libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py index 691654e6b..18cc36319 100644 --- a/libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py +++ b/libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py @@ -314,7 +314,7 @@ class PostgresSaver(BasePostgresSaver): checkpoint_ns, checkpoint["id"], checkpoint_id, - Jsonb(copy), + Jsonb(self.serde.dumps_typed(copy)[1]), Jsonb(get_checkpoint_metadata(config, metadata)), ), ) @@ -458,3 +458,4 @@ class PostgresSaver(BasePostgresSaver): __all__ = ["PostgresSaver", "BasePostgresSaver", "ShallowPostgresSaver", "Conn"] +