Matej Líner
09/12/2023, 9:50 AMCREATE
│ UNIQUE INDEX IF NOT EXISTS job_attempt_idx ON
│ ATTEMPTS(
│ job_id,
│ attempt_number
│ );
│ ]; ERROR: type "job_status" already exists
│ at org.jooq_3.17.8.POSTGRES.debug(Unknown Source) ~[?:?]
│ at org.jooq.impl.Tools.translate(Tools.java:3313) ~[jooq-3.17.8.jar:?]
│ at org.jooq.impl.DefaultExecuteContext.sqlException(DefaultExecuteContext.java:678) ~[jooq-3.17.8.jar:?]
│ at org.jooq.impl.AbstractQuery.execute(AbstractQuery.java:355) ~[jooq-3.17.8.jar:?]
│ at org.jooq.impl.DefaultDSLContext.execute(DefaultDSLContext.java:1132) ~[jooq-3.17.8.jar:?]
│ at io.airbyte.db.init.DatabaseInitializer.initializeSchema(DatabaseInitializer.java:94) ~[io.airbyte.airbyte-db-db-lib-0.50.25.jar:?]
│ at io.airbyte.db.Database.lambda$transaction$0(Database.java:27) ~[io.airbyte.airbyte-db-db-lib-0.50.25.jar:?]
│ at org.jooq.impl.DefaultDSLContext.lambda$transactionResult0$3(DefaultDSLContext.java:552) ~[jooq-3.17.8.jar:?]
│ at org.jooq.impl.Tools$3$1.block(Tools.java:5854) ~[jooq-3.17.8.jar:?]
│ at java.util.concurrent.ForkJoinPool.unmanagedBlock(ForkJoinPool.java:3745) ~[?:?]
│ at java.util.concurrent.ForkJoinPool.managedBlock(ForkJoinPool.java:3690) ~[?:?]kapa.ai
09/12/2023, 9:50 AMMatej Líner
09/12/2023, 9:51 AMMatej Líner
09/12/2023, 10:23 AMkapa.ai
09/12/2023, 10:23 AMkapa.ai
09/12/2023, 10:24 AMv0.40.0-alpha or newer. For more details, you can refer to the [Postgres source troubleshooting guide](https://docs.airbyte.com/integrations/sources/postgres/postgres-troubleshooting) and the [Postgres destination guide](https://docs.airbyte.com/integrations/destinations/postgres).Matej Líner
09/12/2023, 10:28 AMkapa.ai
09/12/2023, 10:28 AMkapa.ai
09/12/2023, 10:29 AM.env file: bash DATABASE_USER=postgres DATABASE_PASSWORD=password DATABASE_HOST=host.docker.internal # refers to localhost of host DATABASE_PORT=3000 DATABASE_DB=postgres If you need to separate the Config Database from the Job Database, you can specify separate parameters: bash CONFIG_DATABASE_USER=airbyte_config_db_user CONFIG_DATABASE_PASSWORD=password You also need to redefine the JDBC URL in the DATABASE_URL environment variable to include the correct host, port, and database. If you need to provide extra arguments to the JDBC driver (for example, to handle SSL) you should add it here as well: bash DATABASE_URL=jdbc:<postgresql://host.docker.internal:3000/postgres?ssl=true&sslmode=require> If the config database is separate from the job database, you need to set up CONFIG_DATABASE_URL as well: bash CONFIG_DATABASE_URL=jdbc:postgresql://<host>:<port>/<database>?<extra-parameters> ([source](https://docs.airbyte.com/operator-guides/configuring-airbyte-db)) 3. Data Migration: If you're switching from the internal database to an external one, you need to manually backup the database. Currently, Airbyte doesn’t have a migration feature between the internal database and an external one ([source](https://discuss.airbyte.io/t/2903)). 4. Database Version: Ensure that you're using a compatible version of Postgres. For non-CDC workflows, you should use Postgres v9.3.x or above. For CDC workflows, you should use Postgres v10 or above. If you're using the Postgres destination, you'll need a Postgres server version 9.5 or above. Please note that currently, Airbyte does not support MySQL as an external database ([source](https://discuss.airbyte.io/t/3069)).Matej Líner
09/12/2023, 10:51 AMkapa.ai
09/12/2023, 10:51 AMkapa.ai
09/12/2023, 10:52 AMMatej Líner
09/12/2023, 1:03 PMkapa.ai
09/12/2023, 1:03 PMkapa.ai
09/12/2023, 1:03 PMpublic schema for the Airbyte database. The public schema is set by default, but you can specify other schemas if you prefer. For example, when setting up a Postgres source, you have the option to list each of the schemas you want to sync. These are case-sensitive, and multiple schemas may be entered ([source](https://docs.airbyte.com/integrations/sources/postgres#step-1-create-a-dedicated-read-only-postgres-user)). Similarly, when setting up a Vertica destination, you can list the default schemas you want to use. Multiple schemas may be used at one time. If no schemas are set explicitly, all existing schemas will be synced ([source](https://docs.airbyte.com/integrations/destinations/vertica#step-1-optional-create-a-dedicated-read-only-user)). Remember to ensure that the user has the necessary permissions to access and modify the schemas you specify.Matej Líner
09/12/2023, 1:05 PMkapa.ai
09/12/2023, 1:05 PMkapa.ai
09/12/2023, 1:05 PM