Skip to content

Commit ace19c0

Browse files
authored
Support for Postgres 17 (#1664)
1 parent 46acfb0 commit ace19c0

File tree

16 files changed

+431
-174
lines changed

16 files changed

+431
-174
lines changed

.github/workflows/ci.yml

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

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,13 @@ jobs:
7272
libpq-dev \
7373
libclang-dev \
7474
wget \
75+
postgresql-17 \
7576
postgresql-16 \
7677
postgresql-15 \
7778
postgresql-14 \
7879
postgresql-13 \
7980
postgresql-12 \
81+
postgresql-server-dev-17 \
8082
postgresql-server-dev-16 \
8183
postgresql-server-dev-15 \
8284
postgresql-server-dev-14 \
@@ -98,13 +100,13 @@ jobs:
98100
with:
99101
working-directory: pgml-extension
100102
command: install
101-
args: cargo-pgrx --version "0.11.2" --locked
103+
args: cargo-pgrx --version "0.12.9" --locked
102104
- name: pgrx init
103105
uses: postgresml/gh-actions-cargo@master
104106
with:
105107
working-directory: pgml-extension
106108
command: pgrx
107-
args: init --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
109+
args: init --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 --pg17=/usr/lib/postgresql/17/bin/pg_config
108110
- name: Build Postgres 12
109111
uses: postgresml/gh-actions-cargo@master
110112
with:
@@ -135,6 +137,12 @@ jobs:
135137
working-directory: pgml-extension
136138
command: pgrx
137139
args: package --pg-config /usr/lib/postgresql/16/bin/pg_config
140+
- name: Build Postgres 17
141+
uses: postgresml/gh-actions-cargo@master
142+
with:
143+
working-directory: pgml-extension
144+
command: pgrx
145+
args: package --pg-config /usr/lib/postgresql/17/bin/pg_config
138146
- name: Build debs
139147
env:
140148
AWS_ACCESS_KEY_ID: ${{ vars.AWS_ACCESS_KEY_ID }}

pgml-cms/docs/open-source/pgml/developers/contributing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Once there, you can initialize `pgrx` and get going:
6767
#### Pgrx command line and environments
6868

6969
```commandline
70-
cargo install cargo-pgrx --version "0.11.2" --locked && \
70+
cargo install cargo-pgrx --version "0.12.9" --locked && \
7171
cargo pgrx init # This will take a few minutes
7272
```
7373

pgml-cms/docs/open-source/pgml/developers/installation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ brew bundle
3636
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:
3737

3838
```bash
39-
cargo install cargo-pgrx --version 0.11.2 && \
39+
cargo install cargo-pgrx --version 0.12.9 && \
4040
cargo pgrx init
4141
```
4242

@@ -287,7 +287,7 @@ We use the `pgrx` Postgres Rust extension framework, which comes with its own in
287287

288288
```bash
289289
cd pgml-extension && \
290-
cargo install cargo-pgrx --version 0.11.2 && \
290+
cargo install cargo-pgrx --version 0.12.9 && \
291291
cargo pgrx init
292292
```
293293

0 commit comments

Comments
 (0)