-
Notifications
You must be signed in to change notification settings - Fork 59
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
pg17 support #348
Merged
Merged
pg17 support #348
Changes from 11 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
abafcf4
In some cases in postgres 17 the `ldb_get_operator_oids` function cal…
var77 2519d27
add postgres 17 support in CI
var77 0928e30
update pg_cron in CI to v1.6.4
var77 1a7fee8
fix pgrx tests in CI for different pg versions
var77 f2a7ccc
Replace `TypenameGetTypid` with custom `TypenameGetVectorTypid` funct…
var77 b99790d
If an error would appear before setting `buildstate->index_file_fd = -1`
var77 3a6d92f
remove version mismatch check from _PG_init, to be able to drop the e…
var77 8ab9a61
do not test updates on pg17 with old incompatible versions
var77 4058c1a
Remove footer from test output as pg17 contains `Disabled: true|false`
var77 18f83e1
disable plan caching when operator rewrite hooks are enabled
var77 bd85111
Deprecate <?> operator, remove `post_parse_analyze_hook` and `Executo…
var77 5cd1429
fix hnsw_vector test
var77 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,7 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
include: | ||
- postgres: 17 | ||
- postgres: 16 | ||
- postgres: 15 | ||
- postgres: 14 | ||
|
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 |
---|---|---|
|
@@ -22,7 +22,7 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
os: [ubuntu-22.04, ubicloud-standard-4-arm, macos-13] | ||
postgres: [12, 13, 14, 15, 16] | ||
postgres: [12, 13, 14, 15, 16, 17] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
|
@@ -148,7 +148,7 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
os: [ubuntu-22.04, ubicloud-standard-4-arm] | ||
postgres: [15] | ||
postgres: [15, 17] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
|
@@ -177,6 +177,7 @@ jobs: | |
run: | | ||
cargo install cargo-pgrx --version 0.12.7 | ||
cargo pgrx init "--pg$PG_VERSION" /usr/bin/pg_config | ||
sed -i -e "s/default = .*/default=[\"pg${PG_VERSION}\"]/" lantern_extras/Cargo.toml | ||
RUSTFLAGS="--cfg profile=\"ci-build\"" cargo pgrx install --sudo --pg-config /usr/bin/pg_config --package lantern_extras | ||
env: | ||
PG_VERSION: ${{ matrix.postgres }} | ||
|
@@ -186,8 +187,10 @@ jobs: | |
PG_VERSION: ${{ matrix.postgres }} | ||
- name: Setup permissions | ||
run: | | ||
sudo chmod 777 -R /usr/lib/postgresql/15/lib/ | ||
sudo chmod 777 -R /usr/share/postgresql/15/extension/ | ||
sudo chmod 777 -R "/usr/lib/postgresql/${PG_VERSION}/lib/" | ||
sudo chmod 777 -R "/usr/share/postgresql/${PG_VERSION}/extension/" | ||
env: | ||
PG_VERSION: ${{ matrix.postgres }} | ||
- name: Run tests | ||
run: cargo llvm-cov --workspace --lcov --output-path lantern-extras-lcov.info | ||
env: | ||
|
@@ -196,7 +199,7 @@ jobs: | |
DB_URL: "postgres://[email protected]:5432/postgres" | ||
- name: Upload lantern_extras coverage | ||
uses: actions/upload-artifact@v4 | ||
if: ${{ startsWith(matrix.os, 'ubuntu') }} | ||
if: ${{ startsWith(matrix.os, 'ubuntu') && matrix.postgres == 15}} | ||
with: | ||
name: lantern-extras-lcov.info | ||
path: ./lantern-extras-lcov.info | ||
|
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
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
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,13 @@ | ||
-- Get vector type oid | ||
CREATE FUNCTION _lantern_internal.get_vector_type_oid() RETURNS OID AS $$ | ||
DECLARE | ||
type_oid OID; | ||
BEGIN | ||
type_oid := (SELECT pg_type.oid FROM pg_type | ||
JOIN pg_depend ON pg_type.oid = pg_depend.objid | ||
JOIN pg_extension ON pg_depend.refobjid = pg_extension.oid | ||
WHERE typname='vector' AND extname='vector' | ||
LIMIT 1); | ||
RETURN COALESCE(type_oid, 0); | ||
END; | ||
$$ LANGUAGE plpgsql; |
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
If we no longer have servers at an older
0.3.*
version that we need to upgrade from, you can also move old update scripts to old_updatesThere 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.
there are still servers with 0.3.x versions, will move the update files to old_updates once all servers are upgraded