Workloads failing on Azure Postgres flexible server.

Julian Jarminowski 30 Reputation points
2025-03-26T14:53:06.3433333+00:00

Workloads that are newly started on our database are failing with the error: "ERROR: Only members of "azure_pg_admin" are allowed to use CREATE EXTENSION [Failed SQL: (0) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"".

This was working before the emergency update in the last days. But according to the postgres docs admin permissions are not necessary: "This module is considered \“trusted\”, that is, it can be installed by non-superusers who have CREATE privilege on the current database." Source: https://www.postgresql.org/docs/15/uuid-ossp.html..

This also happens after adding the "uuid-ossp" extension to the Server Parameters "azure.extensions". Manually creating the extension ahead of time with an admin account does not work; it appears that PostgreSQL is checking permissions for the "CREATE EXTENSION IF EXISTS..." even if the extension does already exist, triggering an error. How can we resolve this as quickly as possible?

Azure Database for PostgreSQL
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.