LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • LangGraph Checkpoint
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    LangGraph Checkpoint
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    Pythonlanggraph.checkpoint.postgresbaseUPSERT_CHECKPOINTS_SQL
    Attribute●Since v1.0

    UPSERT_CHECKPOINTS_SQL

    Copy
    UPSERT_CHECKPOINTS_SQL = '\n    INSERT INTO checkpoints (
      thread_id,
      checkpoint_ns,
      checkpoint_id,
      parent_checkpoint_id,
      checkpoint,
      metadata)\n    VALUES (%s,
      %s,
      %s,
      %s,
      %s,
      %s)\n    ON CONFLICT (thread_id,
      checkpoint_ns,
      checkpoint_id
    )\n    DO UPDATE SET\n        checkpoint = EXCLUDED.checkpoint,\n        metadata = EXCLUDED.metadata;\n'
    View source on GitHub