# AsyncShallowPostgresSaver

> **Class** in `langgraph.checkpoint.postgres`

📖 [View in docs](https://reference.langchain.com/python/langgraph.checkpoint.postgres/shallow/AsyncShallowPostgresSaver)

A checkpoint saver that uses Postgres to store checkpoints asynchronously.

This checkpointer ONLY stores the most recent checkpoint and does NOT retain any history.
It is meant to be a light-weight drop-in replacement for the AsyncPostgresSaver that
supports most of the LangGraph persistence functionality with the exception of time travel.

## Signature

```python
AsyncShallowPostgresSaver(
    self,
    conn: _ainternal.Conn,
    pipe: AsyncPipeline | None = None,
    serde: SerializerProtocol | None = None,
)
```

## Extends

- `BasePostgresSaver`

## Constructors

```python
__init__(
    self,
    conn: _ainternal.Conn,
    pipe: AsyncPipeline | None = None,
    serde: SerializerProtocol | None = None,
) -> None
```

| Name | Type |
|------|------|
| `conn` | `_ainternal.Conn` |
| `pipe` | `AsyncPipeline \| None` |
| `serde` | `SerializerProtocol \| None` |


## Properties

- `SELECT_SQL`
- `MIGRATIONS`
- `UPSERT_CHECKPOINT_BLOBS_SQL`
- `UPSERT_CHECKPOINTS_SQL`
- `UPSERT_CHECKPOINT_WRITES_SQL`
- `INSERT_CHECKPOINT_WRITES_SQL`
- `lock`
- `conn`
- `pipe`
- `loop`
- `supports_pipeline`

## Methods

- [`from_conn_string()`](https://reference.langchain.com/python/langgraph.checkpoint.postgres/shallow/AsyncShallowPostgresSaver/from_conn_string)
- [`setup()`](https://reference.langchain.com/python/langgraph.checkpoint.postgres/shallow/AsyncShallowPostgresSaver/setup)
- [`alist()`](https://reference.langchain.com/python/langgraph.checkpoint.postgres/shallow/AsyncShallowPostgresSaver/alist)
- [`aget_tuple()`](https://reference.langchain.com/python/langgraph.checkpoint.postgres/shallow/AsyncShallowPostgresSaver/aget_tuple)
- [`aput()`](https://reference.langchain.com/python/langgraph.checkpoint.postgres/shallow/AsyncShallowPostgresSaver/aput)
- [`aput_writes()`](https://reference.langchain.com/python/langgraph.checkpoint.postgres/shallow/AsyncShallowPostgresSaver/aput_writes)
- [`list()`](https://reference.langchain.com/python/langgraph.checkpoint.postgres/shallow/AsyncShallowPostgresSaver/list)
- [`get_tuple()`](https://reference.langchain.com/python/langgraph.checkpoint.postgres/shallow/AsyncShallowPostgresSaver/get_tuple)
- [`put()`](https://reference.langchain.com/python/langgraph.checkpoint.postgres/shallow/AsyncShallowPostgresSaver/put)
- [`put_writes()`](https://reference.langchain.com/python/langgraph.checkpoint.postgres/shallow/AsyncShallowPostgresSaver/put_writes)

---

[View source on GitHub](https://github.com/langchain-ai/langgraph/blob/aa322c13cd5f16a3f6254a931a4104e412cd687c/libs/checkpoint-postgres/langgraph/checkpoint/postgres/shallow.py#L529)