Comments (4)
It'll be fixed in next version and you could use
CREATE OR REPLACE VIEW pg_vector_index_stat AS
SELECT
C.oid AS tablerelid,
I.oid AS indexrelid,
C.relname AS tablename,
I.relname AS indexname,
(_vectors_index_stat(I.oid)).*
FROM pg_class C JOIN
pg_index X ON C.oid = X.indrelid JOIN
pg_class I ON I.oid = X.indexrelid JOIN
pg_am A ON A.oid = I.relam
WHERE A.amname = 'vectors' AND C.relkind = 'r';
to fix the behavior in current version.
from pgvecto.rs.
Thanks for the quick reply @usamoi.
I tried your workaround but now I get a different error [XX000] ERROR: oid_ is null
and even the query that previously did work now no longer works. Somehow I bricked it 😅 since even going back to the view without the AND C.relkind = 'r'
fix is now broken. I guess I have to reinstall the extension, luckily it's just a test setup.
from pgvecto.rs.
Thanks for the quick reply @usamoi. I tried your workaround but now I get a different error
[XX000] ERROR: oid_ is null
and even the query that previously did work now no longer works. Somehow I bricked it 😅 since even going back to the view without theAND C.relkind = 'r'
fix is now broken. I guess I have to reinstall the extension, luckily it's just a test setup.
Feel sorry for it. I forgot that the view is changed in development branch since v0.2.1.
If you are using v0.2.1,
CREATE OR REPLACE VIEW pg_vector_index_stat AS
SELECT
C.oid AS tablerelid,
I.oid AS indexrelid,
C.relname AS tablename,
I.relname AS indexname,
(_vectors_index_stat(I.relfilenode)).*
FROM pg_class C JOIN
pg_index X ON C.oid = X.indrelid JOIN
pg_class I ON I.oid = X.indexrelid JOIN
pg_am A ON A.oid = I.relam
WHERE A.amname = 'vectors' AND C.relkind = 'r';
should work.
from pgvecto.rs.
It still produces the same error. But don't worry I will just reinstall the extension.
from pgvecto.rs.
Related Issues (20)
- feat: Support vector aggregation function HOT 1
- 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
- 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 1
- bug: `check` is called outside rayon HOT 2
- Permission denied on data directory after redeploy HOT 4
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.