Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita212fe4

Browse files
committed
Update pgrx, add postgres 16
1 parent8b5029b commita212fe4

File tree

6 files changed

+69
-36
lines changed

6 files changed

+69
-36
lines changed

‎.github/workflows/ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
run:|
5353
curl https://sh.rustup.rs -sSf | sh -s -- -y
5454
source ~/.cargo/env
55-
cargo install cargo-pgrx --version "0.10.0" --locked
55+
cargo install cargo-pgrx --version "0.10.1" --locked
5656
5757
if [[ ! -d ~/.pgrx ]]; then
5858
cargo pgrx init

‎.github/workflows/ubuntu-packages-and-docker-image.yml‎

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,13 @@ jobs:
7272
libpq-dev \
7373
libclang-dev \
7474
wget \
75+
postgresql-16 \
7576
postgresql-15 \
7677
postgresql-14 \
7778
postgresql-13 \
7879
postgresql-12 \
7980
postgresql-11 \
80-
postgresql-server-dev-15 \
81+
postgresql-server-dev-16 \
8182
postgresql-server-dev-14 \
8283
postgresql-server-dev-13 \
8384
postgresql-server-dev-12 \
@@ -98,13 +99,13 @@ jobs:
9899
with:
99100
working-directory:pgml-extension
100101
command:install
101-
args:cargo-pgrx --version "0.10.0" --locked
102+
args:cargo-pgrx --version "0.10.1" --locked
102103
-name:pgrx init
103104
uses:postgresml/gh-actions-cargo@master
104105
with:
105106
working-directory:pgml-extension
106107
command:pgrx
107-
args:init --pg11=/usr/lib/postgresql/11/bin/pg_config --pg12=/usr/lib/postgresql/12/bin/pg_config --pg13=/usr/lib/postgresql/13/bin/pg_config --pg14=/usr/lib/postgresql/14/bin/pg_config --pg15=/usr/lib/postgresql/15/bin/pg_config
108+
args:init --pg11=/usr/lib/postgresql/11/bin/pg_config --pg12=/usr/lib/postgresql/12/bin/pg_config --pg13=/usr/lib/postgresql/13/bin/pg_config --pg14=/usr/lib/postgresql/14/bin/pg_config --pg15=/usr/lib/postgresql/15/bin/pg_config --pg16=/usr/lib/postgresql/16/bin/pg_config
108109
-name:Build Postgres 11
109110
uses:postgresml/gh-actions-cargo@master
110111
with:
@@ -135,6 +136,12 @@ jobs:
135136
working-directory:pgml-extension
136137
command:pgrx
137138
args:package --pg-config /usr/lib/postgresql/15/bin/pg_config
139+
-name:Build Postgres 16
140+
uses:postgresml/gh-actions-cargo@master
141+
with:
142+
working-directory:pgml-extension
143+
command:pgrx
144+
args:package --pg-config /usr/lib/postgresql/16/bin/pg_config
138145
-name:Build debs
139146
env:
140147
AWS_ACCESS_KEY_ID:${{ vars.AWS_ACCESS_KEY_ID }}

‎pgml-docs/docs/guides/deploying-postgresml/self-hosting/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Finally, you can install PostgresML:
3131
sudo apt install -y postgresml-14
3232
```
3333

34-
Ubuntu 22.04 ships with PostgreSQL 14, but if you have a different version installed on your system, just change`14` in the package name to your Postgres version. We currently support all versions supported by the community: Postgres 12 through15.
34+
Ubuntu 22.04 ships with PostgreSQL 14, but if you have a different version installed on your system, just change`14` in the package name to your Postgres version. We currently support all versions supported by the community: Postgres 12 through16.
3535

3636
###Validate your installation
3737

‎pgml-docs/docs/guides/deploying-postgresml/self-hosting/building-from-source.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ For a typical deployment in production, you would need to compile and install th
4040

4141
####Install pgrx
4242

43-
`pgrx` is open source and available from crates.io. We are currently using the`0.10.0` version. It's important that your`pgrx` version matches what we're using, since there are some hard dependencies between our code and`pgrx`.
43+
`pgrx` is open source and available from crates.io. We are currently using the`0.10.1` version. It's important that your`pgrx` version matches what we're using, since there are some hard dependencies between our code and`pgrx`.
4444

4545
To install`pgrx`, simply run:
4646

4747
```
48-
cargo install cargo-pgrx --version "0.10.0"
48+
cargo install cargo-pgrx --version "0.10.1"
4949
```
5050

5151
Before using`pgrx`, it needs to be initialized against the installed version of PostgreSQL. In this example, we'll be using the Ubuntu 22.04 default PostgreSQL 14 installation:

‎pgml-extension/Cargo.lock‎

Lines changed: 51 additions & 26 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎pgml-extension/Cargo.toml‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,15 @@ pg12 = ["pgrx/pg12", "pgrx-tests/pg12"]
1313
pg13 = ["pgrx/pg13","pgrx-tests/pg13"]
1414
pg14 = ["pgrx/pg14","pgrx-tests/pg14"]
1515
pg15 = ["pgrx/pg15","pgrx-tests/pg15"]
16+
pg16 = ["pgrx/pg16","pgrx-tests/pg16"]
1617
use_as_lib = []
1718
pg_test = []
1819
python = ["pyo3"]
1920
cuda = ["xgboost/cuda","lightgbm/cuda"]
2021

2122
[dependencies]
22-
pgrx ="=0.10.0"
23-
pgrx-pg-sys ="=0.10.0"
23+
pgrx ="=0.10.1"
24+
pgrx-pg-sys ="=0.10.1"
2425
xgboost = {git ="https://github.com/postgresml/rust-xgboost.git",branch ="master" }
2526
once_cell = {version ="1",features = ["parking_lot"] }
2627
rand ="0.8"
@@ -51,7 +52,7 @@ flate2 = "1.0"
5152
csv ="1.2"
5253

5354
[dev-dependencies]
54-
pgrx-tests ="=0.10.0"
55+
pgrx-tests ="=0.10.1"
5556

5657
[build-dependencies]
5758
vergen = {version ="8",features = ["build","git","gitcl"] }

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp