Konathala Chaitanya
08/04/2025, 7:32 AMTEMPORAL_ADDRESS is not set, setting it to 10.2.207.241:7233
PostgreSQL started.
Setup PostgreSQL schema.
2025-08-04T07:26:16.741Z INFO Starting schema setup {"config": {"SchemaFilePath":"","SchemaName":"","InitialVersion":"0.0","Overwrite":false,"DisableVersioning":false}, "logging-call-at": "/home/runner/work/docker-builds/docker-builds/temporal/tools/common/schema/setuptask.go:64"}
2025-08-04T07:26:16.741Z DEBUG Setting up version tables {"logging-call-at": "/home/runner/work/docker-builds/docker-builds/temporal/tools/common/schema/setuptask.go:74"}
2025-08-04T07:26:16.744Z ERROR Unable to setup SQL schema. {"error": "pq: permission denied for schema public", "logging-call-at": "/home/runner/work/docker-builds/docker-builds/temporal/tools/sql/handler.go:56"}
what is this error in temporalkapa.ai
08/04/2025, 7:32 AMERROR Unable to setup SQL schema. {"error": "pq: permission denied for schema public", ...} means that the PostgreSQL user being used by Temporal (and thus by Airbyte) does not have sufficient privileges on the public schema of the database. Specifically, the user lacks the necessary permissions to create or modify tables and indexes in the public schema, which is required during the schema setup phase. This is a common issue when using external databases where the user has not been granted the correct privileges. To resolve this, you need to grant the required permissions to the user on the public schema. For example, if your user is airbyte, you should run the following SQL commands on your PostgreSQL database: sql GRANT CREATE, USAGE ON SCHEMA public TO airbyte; GRANT ALL PRIVILEGES ON SCHEMA public TO airbyte; This will allow the user to create and modify objects in the public schema, resolving the "permission denied for schema public" error. This issue and its solution are discussed in the context of both Airbyte's internal and destination databases in the knowledge sources, and the same principle applies to Temporal's schema setup as part of Airbyte's deployment process [[Document additional grants needed for designation Postgres](https://github.com/airbytehq/airbyte/issues/32926)]. If you are using a managed database (like AWS RDS or Azure Database for PostgreSQL), make sure to connect as a superuser or a user with sufficient privileges to grant these permissions. If you continue to see permission errors, double-check that the user is connecting to the correct database and schema, and that the grants have been applied successfully [[Docs]: Document grants requried for external airbyte database](https://github.com/airbytehq/airbyte/issues/60244).