mirror of
https://github.com/langgenius/dify.git
synced 2026-10-04 13:47:55 +08:00
Revert "fix pg_vector extension requires SUPERUSER, but not availabl… (#24108)
This commit is contained in:
1 parent
16d1289a0a
commit
8288b1dcab
2 files changed
+1
-7
No files matched your search
@@ -253,8 +253,7 @@ class PGVector(BaseVector):
|
||||
return
|
||||
|
||||
with self._get_cursor() as cur:
|
||||
if dify_config.PGVECTOR_IS_OWNER:
|
||||
cur.execute("CREATE EXTENSION IF NOT EXISTS vector")
|
||||
cur.execute("CREATE EXTENSION IF NOT EXISTS vector")
|
||||
cur.execute(SQL_CREATE_TABLE.format(table_name=self.table_name, dimension=dimension))
|
||||
# PG hnsw index only support 2000 dimension or less
|
||||
# ref: https://github.com/pgvector/pgvector?tab=readme-ov-file#indexing
|
||||
|
||||
Reference in new issue
Block a user