-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add function alter_vector_index (#73)
Signed-off-by: cutecutecat <[email protected]>
- Loading branch information
1 parent
cfd376e
commit dd55431
Showing
4 changed files
with
83 additions
and
4 deletions.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# General FAQ | ||
|
||
## The vector type or operator class is not found | ||
|
||
In most cases, this is due to a missing schema search path or a lack of permissions. | ||
|
||
Please go through this checklist: | ||
|
||
1. Run `\dx` with `psql` or `SELECT * FROM pg_extension;` and check if the extension exists. | ||
|
||
```bash | ||
postgres=# \dx | ||
List of installed extensions | ||
Name | Version | Schema | Description | ||
---------+---------------+------------+---------------------------------------------------------------------------------------------- | ||
vectors | 0.3.0 | vectors | vectors: Vector database plugin for Postgres, written in Rust, specifically designed for LLM | ||
``` | ||
If not, install it with `CREATE EXTENSION vectors;` | ||
2. Run `SHOW search_path;` and check if it contains `vectors`. | ||
```bash | ||
postgres=# SHOW search_path; | ||
search_path | ||
-------------------------- | ||
"$user", public, vectors | ||
``` | ||
If not, set it with `SET search_path="$user", public, vectors;` | ||
3. If `pgvecto.rs` is installed by another superuser | ||
Run `\dn` with `psql` or `SELECT nspname FROM pg_catalog.pg_namespace;` and check if the schema `vectors` exists. | ||
```bash | ||
postgres=# SELECT current_user; | ||
current_user | ||
-------------- | ||
tensorchord | ||
postgres=# \dn | ||
List of schemas | ||
Name | Owner | ||
---------+------------------- | ||
public | pg_database_owner | ||
vectors | postgres | ||
``` | ||
If not, log in as the superuser and grant schema permissions to `current_user`: | ||
`GRANT ALL ON SCHEMA vectors to tensorchord;` |