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_CHECKPOINT_WRITES_SQL
    Attribute●Since v1.0

    UPSERT_CHECKPOINT_WRITES_SQL

    Copy
    UPSERT_CHECKPOINT_WRITES_SQL = '\n    INSERT INTO checkpoint_writes (
      thread_id,
      checkpoint_ns,
      checkpoint_id,
      task_id,
      task_path,
      idx,
      channel,
      type,
      blob)\n    VALUES (%s,
      %s,
      %s,
      %s,
      %s,
      %s,
      %s,
      %s,
      %s)\n    ON CONFLICT (thread_id,
      checkpoint_ns,
      checkpoint_id,
      task_id,
      idx
    ) DO UPDATE SET\n        channel = EXCLUDED.channel,\n        type = EXCLUDED.type,\n        blob = EXCLUDED.blob;\n'
    View source on GitHub