Comments (5)
UPDATE:
I found something odd, if I run the query above as postgres user i get:
ann1=# SELECT
typname AS name, oid, typarray AS array_oid,
oid::regtype::text AS regtype, typdelim AS delimiter
FROM pg_type t
WHERE t.oid = to_regtype('vector')
ORDER BY t.oid;
name | oid | array_oid | regtype | delimiter
--------+-------+-----------+---------+-----------
vector | 24755 | 24793 | vector | ,
While as ann1 user:
ann1=> SELECT
typname AS name, oid, typarray AS array_oid,
oid::regtype::text AS regtype, typdelim AS delimiter
FROM pg_type t
WHERE t.oid = to_regtype('vector')
ORDER BY t.oid;
name | oid | array_oid | regtype | delimiter
------+-----+-----------+---------+-----------
(0 rows)
However, if I replace the function to_regtype('vector')
with oid 24755 I get:
ann1=> SELECT
typname AS name, oid, typarray AS array_oid,
oid::regtype::text AS regtype, typdelim AS delimiter
FROM pg_type t
WHERE t.oid = 24755
ORDER BY t.oid;
name | oid | array_oid | regtype | delimiter
--------+-------+-----------+----------------+-----------
vector | 24755 | 24793 | vectors.vector | ,
(1 row)
For some reasons the function to_regtype
is returning null. The user ann1 has been granted all privileges.
from pgvecto.rs.
Looks like some kind of permission issue. Have you tried grant permission to the user for the vectors schema and change the search path to include the schema?
from pgvecto.rs.
Can you show me the result of:
SHOW search_path;
And try this:
SET search_path = "$user", public, vectors';
in your session?
from pgvecto.rs.
Here is the output:
postgres@ip-172-16-0-56:~$ psql -d ann1 -U ann1
psql (16.2 (Ubuntu 16.2-1.pgdg22.04+1))
Type "help" for help.
ann1=> SHOW search_path;
search_path
--------------------------
"$user", public, vectors
(1 row)
ann1=> SET search_path = "$user", public, vectors;
SET
ann1=> SELECT
typname AS name, oid, typarray AS array_oid,
oid::regtype::text AS regtype, typdelim AS delimiter
FROM pg_type t
WHERE t.oid = to_regtype('vector')
ORDER BY t.oid;
name | oid | array_oid | regtype | delimiter
------+-----+-----------+---------+-----------
(0 rows)
ann1=> SELECT
typname AS name, oid, typarray AS array_oid,
oid::regtype::text AS regtype, typdelim AS delimiter
FROM pg_type t
WHERE t.oid = 24755
ORDER BY t.oid;
name | oid | array_oid | regtype | delimiter
--------+-------+-----------+----------------+-----------
vector | 24755 | 24793 | vectors.vector | ,
(1 row)
This is with pg16.2, I'll try with pg15 soon to see if the issue persists.
from pgvecto.rs.
@VoVAllen I checked and in fact my non-privileged user did not have permissions to use the extension. I just ran GRANT ALL ON SCHEMA vectors to ann1
as postgres user and the issue is solved :)
Closing the issue, thank you everyone.
from pgvecto.rs.
Related Issues (20)
- feat(fdw): How to be compatible with new pgvector types HOT 1
- feat: ANN benchmark HOT 3
- bench(fdw): Latency HOT 4
- fix(bench): Fix ZillizBench HOT 1
- feat: Add pgvecto.rs to vector hub HOT 2
- unknown x86 target feature HOT 2
- install patched pgrx failed HOT 4
- Can I index array of vectors? HOT 4
- chore(ecosystem): Langchain Python SDK Bump Version HOT 2
- Feature Request: Add Sum Aggregation and Column-Wise Multiplication for Sparse Vectors HOT 4
- SELECT * FROM pg_vector_index_stat does not work with partitions HOT 4
- feat(CI): performance integration by codespeed
- feat: normalized hamming distance HOT 1
- Partitions and partial indexing HOT 4
- Crash on indexing with 0.2.1 docker container HOT 12
- feat: 0.3 release schema update
- bug: possible deadlock in 0.3.0-alpha.2 HOT 2
- bug: `check` is called outside rayon HOT 2
- Permission denied on data directory after redeploy HOT 4
- ERROR: pgvecto.rs: IPC connection is closed unexpected (v0.2.1) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pgvecto.rs.