Hi @Diogo Baeder,
Welcome to the Microsoft Q&A and thank you for posting your questions here.
As I understand it, the issue is related to permissions on the public schema, even though the metabase role has all privileges on the database.
Starting with PostgreSQL 15, the default permissions for the public schema have changed. By default, only the database owner can create objects in the public schema. This change was made to enhance security and prevent unauthorized users from creating objects in the public schema.
To resolve this issue, you need to explicitly grant the necessary permissions to the metabase role for the public schema. You can do this by running the following SQL commands:
GRANT USAGE ON SCHEMA public TO metabase;
GRANT CREATE ON SCHEMA public TO metabase;
These commands will grant the metabase role the ability to use and create objects in the public schema.
For more information, please refer the documents:
https://www.cybertec-postgresql.com/en/error-permission-denied-schema-public/
https://www.postgresql.org/docs/15/sql-createuser.html
Hope this helps. Do let us know if you have any further queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.