Himanshu Dube
09/05/2025, 5:24 AMkapa.ai
09/05/2025, 5:24 AMHimanshu Dube
09/05/2025, 5:26 AMkapa.ai
09/05/2025, 5:26 AMkapa.ai
09/05/2025, 5:26 AMHimanshu Dube
09/05/2025, 7:04 AMkapa.ai
09/05/2025, 7:04 AMkapa.ai
09/05/2025, 7:05 AMstate table. This table contains the state information for each connection, including the most recent values for global or stream-level cursors. You can access this database directly if you are self-hosting Airbyte. For example, if you are running Airbyte with Docker, you can connect to the database and view the state with the following commands: bash docker exec -ti airbyte-db psql -U docker -d airbyte SELECT * FROM state; This will show you the state records, which include the state JSON blob for each connection. The relevant columns are connection_id and state, among others [How and where are cursors persisted](https://airbyte.com/tutorials/incremental-data-synchronization#step-2). Alternatively, you can also view and edit the connection state directly from the Airbyte UI: - Go to Connections > select your connection > Settings tab > Advanced dropdown. Here, you can view and copy the current connection state for use in a new connection [Modifying connection state](https://docs.airbyte.com/platform/next/cloud/managing-airbyte-cloud/manage-connection-state). So, you can copy the connection state either from the database or from the Airbyte UI, depending on your setup and preference.Himanshu Dube
09/05/2025, 7:05 AMkapa.ai
09/05/2025, 7:06 AMkapa.ai
09/05/2025, 7:06 AMstate table by querying for the relevant connection_id. But, if the database has been cleaned up or the records have been deleted as part of the deletion process, the state information will no longer be available. The knowledge sources do not explicitly state whether Airbyte retains state records in the database after a connection is deleted, so if you have already deleted both the source and the connection, there is a risk that the state is no longer accessible. In this case, you would likely need to perform a full re-sync with your new connection, as there would be no way to resume from the previous state without a backup or export of the state prior to deletion [Modifying connection state](https://docs.airbyte.com/platform/next/cloud/managing-airbyte-cloud/manage-connection-state) [How and where are cursors persisted](https://airbyte.com/tutorials/incremental-data-synchronization#step-2). In summary: If the connection is deleted, retrieving its state is generally not possible through the UI, and may not be possible from the database unless the records still exist. The knowledge sources do not guarantee state retention after deletion.