mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #16606] [MERGED] fix: resolve Azure PostgreSQL pgvector extension permission issue #47230
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/16606
Author: @Rain6435
Created: 8/14/2025
Status: ✅ Merged
Merged: 8/14/2025
Merged by: @tjbck
Base:
dev← Head:fix/azure-postgresql-pgvector-permissions📝 Commits (2)
1a42e96fix: resolve Azure PostgreSQL pgvector extension permission issuea1e62abfix: Formatting📊 Changes
1 file changed (+26 additions, -2 deletions)
View changed files
📝
backend/open_webui/retrieval/vector/dbs/pgvector.py(+26 -2)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in
Discussions and describe your changes before submitting a pull
request.
Before submitting, make sure you've checked the following:
Target branch: Please verify that the pull request targets the
devbranch.Description: Provide a concise description of the changes made in this pull request.
Changelog: Ensure a changelog entry following the format of Keep a Changelog is
added at the bottom of the PR description.
Documentation: Have you updated relevant documentation Open WebUI Docs, or
other documentation sources?
Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?
Testing: Have you written and run sufficient tests to validate the changes?
Code review: Have you performed a self-review of your code, addressing any coding standard issues and ensuring
adherence to the project's coding standards?
Prefix: To clearly categorize this pull request, prefix the pull request title using one of the following:
Changelog Entry
Description
This PR resolves Azure PostgreSQL Flexible Server permission issues when creating pgvector extensions. The fix addresses the
error "Only members of 'azure_pg_admin' are allowed to use CREATE EXTENSION" by implementing conditional extension creation
that checks for extension existence before attempting to create it.
Fixed
CREATE EXTENSION IF NOT EXISTS vector;with conditional PostgreSQL block that checkspg_extensiontable firstpgcryptoextension for consistencyazure_pg_adminroleAdditional Information
Fixes #12453
Technical Details
Before:
After:
Test Plan
Benefits
For Azure Users:
For All Users:
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to
the /CONTRIBUTOR_LICENSE_AGREEMENT, and
I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.