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

Update to pgrx 0.11.0 & Postgres 16#1102

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion.github/workflows/ci.yml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -52,7 +52,7 @@ jobs:
run: |
curl https://sh.rustup.rs -sSf | sh -s -- -y
source ~/.cargo/env
cargo install cargo-pgrx --version "0.10.0" --locked
cargo install cargo-pgrx --version "0.11.0" --locked

if [[ ! -d ~/.pgrx ]]; then
cargo pgrx init
Expand Down
12 changes: 9 additions & 3 deletions.github/workflows/ubuntu-packages-and-docker-image.yml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -72,16 +72,16 @@ jobs:
libpq-dev \
libclang-dev \
wget \
postgresql-16 \
postgresql-15 \
postgresql-14 \
postgresql-13 \
postgresql-12 \
postgresql-11 \
postgresql-server-dev-16 \
postgresql-server-dev-15 \
postgresql-server-dev-14 \
postgresql-server-dev-13 \
postgresql-server-dev-12 \
postgresql-server-dev-11 \
lsb-release \
python3.10 \
python3-pip \
Expand All@@ -98,7 +98,7 @@ jobs:
with:
working-directory: pgml-extension
command: install
args: cargo-pgrx --version "0.10.0" --locked
args: cargo-pgrx --version "0.11.0" --locked
- name: pgrx init
uses: postgresml/gh-actions-cargo@master
with:
Expand DownExpand Up@@ -135,6 +135,12 @@ jobs:
working-directory: pgml-extension
command: pgrx
args: package --pg-config /usr/lib/postgresql/15/bin/pg_config
- name: Build Postgres 16
uses: postgresml/gh-actions-cargo@master
with:
working-directory: pgml-extension
command: pgrx
args: package --pg-config /usr/lib/postgresql/16/bin/pg_config
- name: Build debs
env:
AWS_ACCESS_KEY_ID: ${{ vars.AWS_ACCESS_KEY_ID }}
Expand Down
2 changes: 1 addition & 1 deletionpgml-dashboard/content/docs/guides/setup/developers.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -70,7 +70,7 @@ Once there, you can initialize `pgrx` and get going:

#### Pgrx command line and environments
```commandline
cargo install cargo-pgrx --version "0.10.0" --locked && \
cargo install cargo-pgrx --version "0.11.0" --locked && \
cargo pgrx init # This will take a few minutes
```

Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -36,7 +36,7 @@ brew bundle
PostgresML is written in Rust, so you'll need to install the latest compiler from [rust-lang.org](https://rust-lang.org). Additionally, we use the Rust PostgreSQL extension framework `pgrx`, which requires some initialization steps:

```bash
cargo install cargo-pgrx --version 0.10.0 && \
cargo install cargo-pgrx --version 0.11.0 && \
cargo pgrx init
```

Expand DownExpand Up@@ -294,7 +294,7 @@ We use the `pgrx` Postgres Rust extension framework, which comes with its own in

```bash
cd pgml-extension && \
cargo install cargo-pgrx --version 0.10.0 && \
cargo install cargo-pgrx --version 0.11.0 && \
cargo pgrx init
```

Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -31,7 +31,7 @@ Finally, you can install PostgresML:
sudo apt install -y postgresml-14
```

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.
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.

### Validate your installation

Expand Down
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -40,12 +40,12 @@ For a typical deployment in production, you would need to compile and install th

#### Install pgrx

`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`.
`pgrx` is open source and available from crates.io. We are currently using the `0.11.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`.

To install `pgrx`, simply run:

```
cargo install cargo-pgrx --version "0.10.0"
cargo install cargo-pgrx --version "0.11.0"
```

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:
Expand Down
76 changes: 38 additions & 38 deletionspgml-extension/Cargo.lock
View file
Open in desktop

Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.

12 changes: 6 additions & 6 deletionspgml-extension/Cargo.toml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
[package]
name = "pgml"
version = "2.7.10"
version = "2.7.11"
edition = "2021"

[lib]
crate-type = ["lib", "cdylib"]

[features]
default = ["pg15", "python"]
pg11 = ["pgrx/pg11", "pgrx-tests/pg11"]
default = ["pg16", "python"]
pg12 = ["pgrx/pg12", "pgrx-tests/pg12"]
pg13 = ["pgrx/pg13", "pgrx-tests/pg13"]
pg14 = ["pgrx/pg14", "pgrx-tests/pg14"]
pg15 = ["pgrx/pg15", "pgrx-tests/pg15"]
pg16 = ["pgrx/pg16", "pgrx-tests/pg16"]
use_as_lib = []
pg_test = []
python = ["pyo3"]
cuda = ["xgboost/cuda", "lightgbm/cuda"]

[dependencies]
pgrx = "=0.10.0"
pgrx-pg-sys = "=0.10.0"
pgrx = "=0.11.0"
pgrx-pg-sys = "=0.11.0"
xgboost = { git = "https://github.com/postgresml/rust-xgboost.git", branch = "master" }
once_cell = { version = "1", features = ["parking_lot"] }
rand = "0.8"
Expand DownExpand Up@@ -51,7 +51,7 @@ flate2 = "1.0"
csv = "1.2"

[dev-dependencies]
pgrx-tests = "=0.10.0"
pgrx-tests = "=0.11.0"

[build-dependencies]
vergen = { version = "8", features = ["build", "git", "gitcl"] }
Expand Down
View file
Open in desktop
Empty file.

[8]ページ先頭

©2009-2025 Movatter.jp