Files
langgraph/libs/checkpoint-postgres/tests
Elior Nataf Lackritz ed478f23b8 feat(checkpoint-postgres): add prune to PostgresSaver and AsyncPostgresSaver
`delete` removes every checkpoint, write and blob of the given threads.
`keep_latest` keeps the latest checkpoint of each namespace, with its
pending writes and the blobs it references, and deletes everything older,
including blobs only those checkpoints used. Checkpoints saved while the
prune runs are left alone.

`keep_latest` refuses threads that use a DeltaChannel, since a
DeltaChannel rebuilds the latest value from older checkpoints; nothing is
pruned when any requested thread uses one.
2026-10-12 21:26:51 -04:00
..
2024-11-28 04:40:12 +00:00