Skip to content

Conversation

@dkottis
Copy link

@dkottis dkottis commented Jan 28, 2026

Some Managed PostgreSQL services (e.g., Azure Flexible Server) do not grant users permission to create extensions, just superusers. Previously, when extensions like NetTopologySuite were configured, efcore.pg would include CREATE EXTENSION IF NOT EXISTS postgis; in every GetCreateScript() initialization script on startup, which then would break the application because of this permission error.

This PR adds a workaround to filter out extension-related operations from the creation scripts of the history table.

Fixes #3496

…to prevent superuser permission errors and add related test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Manual extension check to prevent permission issues

1 participant