-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace
TypenameGetTypid
with custom TypenameGetTypidAllNsp
funct…
…ion. After release of Postgres 17, search_path is restricted to (pg_catalog, pg_temp) for maintenance operations [ref: postgres/postgres@2af07e2] So when pgvector was installed in public schema and we will try to get the oid for vector type using `TypenameGetTypid("vector")` it would return `InvalidOid` By this change the function `TypenameGetTypidAllNsp` will iterate over all available namespaces and search for the type in syscache returning the oid if found.
- Loading branch information
Showing
3 changed files
with
44 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters