Skip to content

checkpointpostgres==1.0.4

Choose a tag to compare

@github-actions github-actions released this 27 Aug 15:38
c88d289

langgraph-checkpoint-postgres 1.0.4

Summary of Changes

  • Added support for connection pools through psycopg_pool, enabling better resource management in high-concurrency scenarios #1452
  • Improved cursor handling with consistent use of dict_row factory #1433
  • Optimized writes handling by using WRITES_IDX_MAP and removing unnecessary delete operations #1436
  • Enhanced search functionality with better handling of checkpoint namespace and ID #1452

Detailed Changes

langgraph.checkpoint.postgres.PostgresSaver

  • Now accepts a connection pool (ConnectionPool) in addition to direct connections (Connection) #1452
  • Improved cursor handling with consistent use of dict_row as row factory #1433
  • Enhanced list() method to include pending writes in returned checkpoint tuples #1436
  • Removed DELETE_WRITES_SQL logic from put_writes() method for more efficient handling of writes #1436

langgraph.checkpoint.postgres.aio.AsyncPostgresSaver

  • Added support for AsyncConnectionPool in addition to AsyncConnection #1452
  • Improved cursor handling with consistent use of dict_row as row factory #1433
  • Enhanced alist() method to include pending writes in returned checkpoint tuples #1436
  • Removed DELETE_WRITES_SQL logic from aput_writes() method for more efficient handling of writes #1436

langgraph.checkpoint.postgres.base.BasePostgresSaver

  • Added support for WRITES_IDX_MAP to properly index writes by channel #1436
  • Enhanced _search_where() method with better handling of checkpoint namespace and ID parameters #1452