Skip to content

Commit

Permalink
release: pg_idkit 0.2.4
Browse files Browse the repository at this point in the history
Signed-off-by: GitHub <[email protected]>
  • Loading branch information
t3hmrman committed Oct 1, 2024
1 parent 233a528 commit 752424d
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 16 deletions.
26 changes: 26 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,32 @@
# Changelog
All notable changes to this project will be documented in this file.

## [0.2.4] - 2024-10-01

### Bug Fixes

- Trigger settings
- Add explicit pgrx_embed bin

### Features

- Add note to docs about CI issues
- Add postgres 17

### Miscellaneous Tasks

- Update deps
- Pg 15.6 -> 15.8
- Pg 16.2 -> 16.4
- Pgrx 0.11.3 -> 0.12.5
- Update rust version
- Update pgrx init version, print pgrx version
- Remove automated PR testing for pg12/pg13

### Refactor

- Update chrono usage

## [0.2.3] - 2024-03-06

### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

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

14 changes: 7 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pg_idkit"
version = "0.2.3"
version = "0.2.4"
edition = "2021"
authors = ["Victor Adossi <[email protected]>"]
license = "MIT"
Expand Down Expand Up @@ -66,7 +66,7 @@ assets = []
[package.metadata.generate-rpm.variants.pg12]
assets = [
{ source = "/tmp/pg_idkit/rpm/scratch/pgrx-install/lib/postgresql/pg_idkit.so", dest = "/usr/lib64/pgsql/pg_idkit.so", mode = "755" },
{ source = "/tmp/pg_idkit/rpm/scratch/pgrx-install/share/postgresql/extension/pg_idkit--0.2.3.sql", dest = "/usr/share/pgsql/extension/pg_idkit--0.2.3.sql", mode = "755" },
{ source = "/tmp/pg_idkit/rpm/scratch/pgrx-install/share/postgresql/extension/pg_idkit--0.2.4.sql", dest = "/usr/share/pgsql/extension/pg_idkit--0.2.4.sql", mode = "755" },
{ source = "/tmp/pg_idkit/rpm/scratch/pgrx-install/share/postgresql/extension/pg_idkit.control", dest = "/usr/share/pgsql/extension/pg_idkit.control", mode = "755" },
]
requires = { postgresql-server = "> 12", glibc = "*" }
Expand All @@ -75,7 +75,7 @@ release = "pg12"
[package.metadata.generate-rpm.variants.pg13]
assets = [
{ source = "/tmp/pg_idkit/rpm/scratch/pgrx-install/lib/postgresql/pg_idkit.so", dest = "/usr/lib64/pgsql/pg_idkit.so", mode = "755" },
{ source = "/tmp/pg_idkit/rpm/scratch/pgrx-install/share/postgresql/extension/pg_idkit--0.2.3.sql", dest = "/usr/share/pgsql/extension/pg_idkit--0.2.3.sql", mode = "755" },
{ source = "/tmp/pg_idkit/rpm/scratch/pgrx-install/share/postgresql/extension/pg_idkit--0.2.4.sql", dest = "/usr/share/pgsql/extension/pg_idkit--0.2.4.sql", mode = "755" },
{ source = "/tmp/pg_idkit/rpm/scratch/pgrx-install/share/postgresql/extension/pg_idkit.control", dest = "/usr/share/pgsql/extension/pg_idkit.control", mode = "755" },
]
requires = { postgresql-server = "> 13", glibc = "*" }
Expand All @@ -84,7 +84,7 @@ release = "pg13"
[package.metadata.generate-rpm.variants.pg14]
assets = [
{ source = "/tmp/pg_idkit/rpm/scratch/pgrx-install/lib/postgresql/pg_idkit.so", dest = "/usr/lib64/pgsql/pg_idkit.so", mode = "755" },
{ source = "/tmp/pg_idkit/rpm/scratch/pgrx-install/share/postgresql/extension/pg_idkit--0.2.3.sql", dest = "/usr/share/pgsql/extension/pg_idkit--0.2.3.sql", mode = "755" },
{ source = "/tmp/pg_idkit/rpm/scratch/pgrx-install/share/postgresql/extension/pg_idkit--0.2.4.sql", dest = "/usr/share/pgsql/extension/pg_idkit--0.2.4.sql", mode = "755" },
{ source = "/tmp/pg_idkit/rpm/scratch/pgrx-install/share/postgresql/extension/pg_idkit.control", dest = "/usr/share/pgsql/extension/pg_idkit.control", mode = "755" },
]
requires = { postgresql-server = "> 14", glibc = "*" }
Expand All @@ -93,7 +93,7 @@ release = "pg14"
[package.metadata.generate-rpm.variants.pg15]
assets = [
{ source = "/tmp/pg_idkit/rpm/scratch/pgrx-install/lib/postgresql/pg_idkit.so", dest = "/usr/lib64/pgsql/pg_idkit.so", mode = "755" },
{ source = "/tmp/pg_idkit/rpm/scratch/pgrx-install/share/postgresql/extension/pg_idkit--0.2.3.sql", dest = "/usr/share/pgsql/extension/pg_idkit--0.2.3.sql", mode = "755" },
{ source = "/tmp/pg_idkit/rpm/scratch/pgrx-install/share/postgresql/extension/pg_idkit--0.2.4.sql", dest = "/usr/share/pgsql/extension/pg_idkit--0.2.4.sql", mode = "755" },
{ source = "/tmp/pg_idkit/rpm/scratch/pgrx-install/share/postgresql/extension/pg_idkit.control", dest = "/usr/share/pgsql/extension/pg_idkit.control", mode = "755" },
]
requires = { postgresql-server = "> 15", glibc = "*" }
Expand All @@ -102,7 +102,7 @@ release = "pg15"
[package.metadata.generate-rpm.variants.pg16]
assets = [
{ source = "/tmp/pg_idkit/rpm/scratch/pgrx-install/lib/postgresql/pg_idkit.so", dest = "/usr/lib64/pgsql/pg_idkit.so", mode = "755" },
{ source = "/tmp/pg_idkit/rpm/scratch/pgrx-install/share/postgresql/extension/pg_idkit--0.2.3.sql", dest = "/usr/share/pgsql/extension/pg_idkit--0.2.3.sql", mode = "755" },
{ source = "/tmp/pg_idkit/rpm/scratch/pgrx-install/share/postgresql/extension/pg_idkit--0.2.4.sql", dest = "/usr/share/pgsql/extension/pg_idkit--0.2.4.sql", mode = "755" },
{ source = "/tmp/pg_idkit/rpm/scratch/pgrx-install/share/postgresql/extension/pg_idkit.control", dest = "/usr/share/pgsql/extension/pg_idkit.control", mode = "755" },
]
requires = { postgresql-server = "> 16", glibc = "*" }
Expand All @@ -111,7 +111,7 @@ release = "pg16"
[package.metadata.generate-rpm.variants.pg17]
assets = [
{ source = "/tmp/pg_idkit/rpm/scratch/pgrx-install/lib/postgresql/pg_idkit.so", dest = "/usr/lib64/pgsql/pg_idkit.so", mode = "755" },
{ source = "/tmp/pg_idkit/rpm/scratch/pgrx-install/share/postgresql/extension/pg_idkit--0.2.3.sql", dest = "/usr/share/pgsql/extension/pg_idkit--0.2.3.sql", mode = "755" },
{ source = "/tmp/pg_idkit/rpm/scratch/pgrx-install/share/postgresql/extension/pg_idkit--0.2.4.sql", dest = "/usr/share/pgsql/extension/pg_idkit--0.2.4.sql", mode = "755" },
{ source = "/tmp/pg_idkit/rpm/scratch/pgrx-install/share/postgresql/extension/pg_idkit.control", dest = "/usr/share/pgsql/extension/pg_idkit.control", mode = "755" },
]
requires = { postgresql-server = "> 17", glibc = "*" }
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ docker run \
-e POSTGRES_PASSWORD=replace_this \
-p 5432 \
--name pg_idkit \
ghcr.io/vadosware/pg_idkit:0.2.3-pg16.2-alpine3.18-amd64
ghcr.io/vadosware/pg_idkit:0.2.3-pg17.0-alpine3.18-amd64
```

> [!WARNING]
Expand All @@ -77,7 +77,7 @@ Once the postgres server is running, open another shell and connect to the docke

```console
docker exec -it pg_idkit psql -U postgres
psql (16.2)
psql (17.0)
Type "help" for help.

postgres=# CREATE EXTENSION pg_idkit;
Expand Down Expand Up @@ -111,7 +111,7 @@ target/release/pg_idkit-pg16
├── home
│   └── <user>
│   └── .pgrx
│   └── 16.2
│   └── 17.0
│   └── pgrx-install
│   ├── lib
│   │   └── postgresql
Expand All @@ -137,9 +137,9 @@ As the installation of the extension into a specific version of postgres uses yo

In the example above, the [files you need for a Postgres extension][pg-ext-files] are:

- `target/release/home/<user>/.pgrx/16.2/pgrx-install/lib/postgresql/pg_idkit.so`
- `target/release/home/<user>/.pgrx/16.2/pgrx-install/share/postgresql/extension/pg_idkit--0.2.3.sql`
- `target/release/home/<user>/.pgrx/16.2/pgrx-install/share/postgresql/extension/pg_idkit.control`
- `target/release/home/<user>/.pgrx/17.0/pgrx-install/lib/postgresql/pg_idkit.so`
- `target/release/home/<user>/.pgrx/17.0/pgrx-install/share/postgresql/extension/pg_idkit--0.2.3.sql`
- `target/release/home/<user>/.pgrx/17.0/pgrx-install/share/postgresql/extension/pg_idkit.control`

Install these files in the relevant folders for your Postgres installation -- note that exactly where these files should go can can differ across linux distributions and containerized environments.

Expand Down Expand Up @@ -185,14 +185,14 @@ docker run \
-e POSTGRES_PASSWORD=replace_this \
-p 5432 \
--name pg_idkit \
ghcr.io/vadosware/pg_idkit:0.2.3-pg16.2-alpine3.18-amd64
ghcr.io/vadosware/pg_idkit:0.2.3-pg17.0-alpine3.18-amd64
```

From another terminal, you can exec into the `pg_idkit` container and enable `pg_idkit`:

```console
docker exec -it pg_idkit psql -U postgres
psql (16.2)
psql (17.0)
Type "help" for help.

postgres=# CREATE EXTENSION pg_idkit;
Expand Down

0 comments on commit 752424d

Please sign in to comment.