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.postgresbaseSELECT_PENDING_SENDS_SQL
    Attribute●Since v2.0

    SELECT_PENDING_SENDS_SQL

    Copy
    SELECT_PENDING_SENDS_SQL = f'
    select
        checkpoint_id,
        array_agg(
      array[type::bytea, blob] order by task_path,
      task_id,
      idx) as sends
    from checkpoint_writes
    where thread_id = %s
        and checkpoint_id = any(%s
    )
        and channel = '{TASKS}'
    group by checkpoint_id
    '
    View source on GitHub