Releases
checkpointpostgres==2.0.17
checkpointpostgres==2.0.17
Compare
Sorry, something went wrong.
No results found
langgraph-checkpoint-postgres 2.0.17
Summary of Changes
Added TTL (Time To Live) support for Postgres store items (#3781 )
Implemented background sweeper for automatic cleanup of expired items (#3849 )
Added ability to refresh TTL when getting or searching items (#3849 )
Improved error handling in database migrations (#3849 )
Detailed Changes
langgraph.store.postgres.base.PostgresStore
Added ttl parameter to constructor to configure TTL behavior (#3781 )
Added sweep_ttl() method to manually delete expired items (#3849 )
Added start_ttl_sweeper() to begin background thread for automatic TTL cleanup (#3849 )
Added stop_ttl_sweeper() to properly shut down the background cleanup thread (#3849 )
Updated from_conn_string() to support TTL configuration (#3849 )
Modified database queries to handle TTL columns in PUT, GET, and SEARCH operations (#3849 )
Added cleanup logic in __del__ to ensure sweeper threads are stopped (#3849 )
langgraph.store.postgres.aio.AsyncPostgresStore
Added ttl parameter to constructor to configure TTL behavior (#3781 )
Added asynchronous sweep_ttl() method to manually delete expired items (#3849 )
Added start_ttl_sweeper() to begin background task for automatic TTL cleanup (#3849 )
Added stop_ttl_sweeper() to properly shut down the background cleanup task (#3849 )
Updated from_conn_string() to support TTL configuration (#3849 )
Added async context manager methods to ensure proper cleanup of resources (#3849 )
langgraph.store.postgres.base.Migration
Added new migrations to support TTL functionality (#3849 ):
Adding expires_at and ttl_minutes columns to store table
Creating index on expires_at for efficient TTL sweeping
You can’t perform that action at this time.