upgrading postgres from version 13 to 16 any scrip...
# ask-ai
k
upgrading postgres from version 13 to 16 any script i need to run
k
Based on the provided knowledge sources, there is no official Airbyte migration script specifically for upgrading your external Postgres database from version 13 to 16. However, user reports confirm that Airbyte works with Postgres 16 as an external database, and the upgrade process generally involves standard Postgres upgrade procedures, not Airbyte-specific scripts. Key points from the sources: - Users have successfully tested Airbyte with Postgres versions 13, 14, 15, 16, and even 17, by creating the required databases (
airbyte
,
temporal
,
temporal_visibility
) and restoring data using standard Postgres tools like
pg_dump
and
psql
[Minimal Postgres Version Supported as External Database](https://github.com/airbytehq/airbyte/issues/48542). - The upgrade process typically involves: 1. Backing up your existing databases using
pg_dump
. 2. Creating the required databases on the new Postgres 16 instance. 3. Restoring the backups to the new instance using
psql
. - There is no mention of any Airbyte-specific migration script or step required beyond the standard Postgres upgrade and ensuring the Airbyte schema is intact. Example workflow:
Copy code
bash # On your old Postgres 13 instance pg_dump -U <user> -h <old_host> airbyte > airbyte.sql pg_dump -U <user> -h <old_host> temporal > temporal.sql pg_dump -U <user> -h <old_host> temporal_visibility > temporal_visibility.sql  # On your new Postgres 16 instance psql -U <user> -h <new_host> -c "CREATE DATABASE airbyte WITH OWNER = <user>;" psql -U <user> -h <new_host> -c "CREATE DATABASE temporal WITH OWNER = <user>;" psql -U <user> -h <new_host> -c "CREATE DATABASE temporal_visibility WITH OWNER = <user>;"  psql -U <user> -h <new_host> -d airbyte -f airbyte.sql psql -U <user> -h <new_host> -d temporal -f temporal.sql psql -U <user> -h <new_host> -d temporal_visibility -f temporal_visibility.sql
Make sure to update your Airbyte configuration to point to the new database host. Note: Always test the upgrade in a staging environment before applying it to production, and ensure you have backups. If you are using Airbyte's internal Postgres (not an external database), follow standard Postgres upgrade procedures and ensure the Airbyte application is not running during the upgrade. There is no indication in the knowledge sources of any additional Airbyte-specific script required for this upgrade path. If you encounter migration errors, they are likely related to standard Postgres compatibility or schema issues, not Airbyte-specific requirements [Minimal Postgres Version Supported as External Database](https://github.com/airbytehq/airbyte/issues/48542). If you need to upgrade the Airbyte application itself, follow the Airbyte upgrade documentation, but for the database upgrade, standard Postgres procedures apply.