update extension name (#7359)

hi @rlancemartin ,

We had a new deployment and the `pg_extension` creation command was
updated from `CREATE EXTENSION pg_embedding` to `CREATE EXTENSION
embedding`.

https://github.com/neondatabase/neon/pull/4646

The extension not made public yet. No users will be affected by this.
Will be public next week.

Please let me know if you have any questions.

Thank you in advance 🙏
This commit is contained in:
Raouf Chebri 2023-07-07 20:35:51 +02:00 committed by GitHub
parent 4e180dc54e
commit 1ac6deda89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -143,9 +143,7 @@ class PGEmbedding(VectorStore):
def create_hnsw_extension(self) -> None: def create_hnsw_extension(self) -> None:
try: try:
with Session(self._conn) as session: with Session(self._conn) as session:
statement = sqlalchemy.text( statement = sqlalchemy.text("CREATE EXTENSION IF NOT EXISTS embedding")
"CREATE EXTENSION IF NOT EXISTS pg_embedding"
)
session.execute(statement) session.execute(statement)
session.commit() session.commit()
except Exception as e: except Exception as e: