Srikar Chamarthy
06/04/2026, 12:38 PMkapa.ai
06/04/2026, 12:38 PMstate table in Airbyte's internal Postgres database.
You can access it by connecting to the database:
docker exec -ti airbyte-db psql -U docker -d airbyte
Then query the table:
SELECT * FROM state;
The state column contains a JSON object that includes the cursor value. For example:
{
"state": {
"cdc": false,
"streams": [
{
"cursor": "2022-09-02T07:55:58.324989",
"stream_name": "table_one",
"cursor_field": [
"updated_at"
],
"stream_namespace": "public"
}
]
}
}
The table also has a connection_id column to identify which connection the state belongs to. [Incremental Sync Tutorial]
If you need to manually update the cursor value, you can use a command like:
UPDATE state
SET state = jsonb_set(state, '{state, streams, 0, cursor}', '"2022-01-25T00:00:00.000000Z"', false)
WHERE connection_id = '<your-connection-id>';
[Forum: Manually Defined Cursor] đ 0 button đ 0 button âšī¸ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.Srikar Chamarthy
06/04/2026, 12:39 PMkapa.ai
06/04/2026, 12:40 PMstate table only stores the most recent cursor value for each stream/connection â it gets overwritten after each sync.
However, there are a couple of approaches you could explore:
1. Check the Connection Timeline in the UI â Airbyte's Connection Timeline records historical sync events, which may help you correlate when a cursor value changed. [Connection Timeline]
2. View current state via the UI â The Connection State panel (under Settings > Advanced) shows the current cursor values, but not previous ones. [Connection State]
3. PyAirbyte API â If you're using PyAirbyte, the get_state_artifacts() method on a CloudConnection object returns the current persisted state, but again only the latest. [PyAirbyte Reference]
In short, Airbyte does not appear to natively retain a history of past cursor values â only the latest state is persisted. If tracking cursor history is important to you, you would need to implement an external solution to periodically snapshot the state table. đ 0 button đ 0 button âšī¸ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.