-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add pgvector 0.5.0+ vector type compatibility #128
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #128 +/- ##
==========================================
- Coverage 84.27% 84.01% -0.26%
==========================================
Files 17 17
Lines 1170 1170
Branches 249 250 +1
==========================================
- Hits 986 983 -3
- Misses 79 85 +6
+ Partials 105 102 -3
|
1029c79
to
5bc2136
Compare
Benchmarks
|
Looks good, just we need to change the pgvector version in CI build script as well https://github.com/lanterndata/lanterndb/blob/main/ci/scripts/build-linux.sh#L33 |
0abb050
to
090c22d
Compare
foreach(lc, queryDesc->plannedstmt->subplans) { | ||
Plan *subplan = (Plan *)lfirst(lc); | ||
validate_operator_usage(subplan, oidList); | ||
if(oidList != NULL) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think these changes weren't intended.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small typo re: CRETE. Otherwise, discussed offline, these changes were intended.
ci/scripts/build-linux.sh
Outdated
wget -O pgvector.tar.gz https://github.com/pgvector/pgvector/archive/refs/tags/v${PGVECTOR_VERSION}.tar.gz | ||
tar xzf pgvector.tar.gz | ||
pushd pgvector-${PGVECTOR_VERSION} | ||
make && make install | ||
popd | ||
popd | ||
# Fix pg_config (sometimes it points to wrong version) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you intend to remove this comment?
090c22d
to
0924865
Compare
This actually happened... Some of our getters had exactly same names as recently added pgvector hnsw index getter names. This caused issues when our extension was installed after installing pgvector: homonymous lantern functions would resolve to pgvector's functions and we would get wrong parameter values in lantern
0924865
to
e0066d9
Compare
This PR makes latest LanternDB copatible with pgvector 0.4.4 as well as pgvector 0.5.0
When the newer pgvector is already installed, now we create a compatibility-mode
lantern_hnsw
access method in stead of thehnsw
defaultThe PR also renames some of our internal C functions that would otherwise clash with homonymous pgvector functions