Skip to content

Commit

Permalink
Bump pgrx for CI as well, add pg17 tests and udpates readme to pg17
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgomes committed Sep 23, 2024
1 parent 71657b4 commit 0b886fa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ jobs:
package_name:
- pg-graphql
pgrx_version:
- 0.11.3
postgres: [14, 15, 16]
- 0.12.4
postgres: [14, 15, 16, 17]
box:
- { runner: ubuntu-20.04, arch: amd64 }
- { runner: arm-runner, arch: arm64 }
Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/db/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ RUN \
cargo --version

# PGRX
RUN cargo install cargo-pgrx --version 0.11.3 --locked
RUN cargo install cargo-pgrx --version 0.12.4 --locked

RUN cargo pgrx init --pg${PG_MAJOR} $(which pg_config)

Expand Down
6 changes: 3 additions & 3 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@ cargo pgrx install --release
Before enabling the extension you need to initialize `pgrx`. The easiest way to get started is to allow `pgrx` to manage its own version/s of Postgres:

```bash
cargo pgrx init --pg16=download
cargo pgrx init --pg17=download
```

For more advanced configuration options, like building against an existing Postgres installation from e.g. Homebrew, see the [pgrx docs](https://github.com/pgcentralfoundation/pgrx)

To start the database:

```bash
cargo pgrx start pg16
cargo pgrx start pg17
```

To connect:

```bash
cargo pgrx connect pg16
cargo pgrx connect pg17
```

Finally, to enable the `pg_graphql` extension in Postgres, execute the `create extension` statement. This extension creates its own schema/namespace named `graphql` to avoid naming conflicts.
Expand Down

0 comments on commit 0b886fa

Please sign in to comment.