From 752424d42be9c9517e2dd93dbf04c65d9d0682f8 Mon Sep 17 00:00:00 2001 From: t3hmrman Date: Tue, 1 Oct 2024 08:17:30 +0000 Subject: [PATCH] release: pg_idkit 0.2.4 Signed-off-by: GitHub --- CHANGELOG | 26 ++++++++++++++++++++++++++ Cargo.lock | 2 +- Cargo.toml | 14 +++++++------- README.md | 16 ++++++++-------- 4 files changed, 42 insertions(+), 16 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 873fc7c..b4795a2 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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 diff --git a/Cargo.lock b/Cargo.lock index 01026fd..23d4eff 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1215,7 +1215,7 @@ dependencies = [ [[package]] name = "pg_idkit" -version = "0.2.3" +version = "0.2.4" dependencies = [ "chrono", "cuid", diff --git a/Cargo.toml b/Cargo.toml index af41883..640355f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pg_idkit" -version = "0.2.3" +version = "0.2.4" edition = "2021" authors = ["Victor Adossi "] license = "MIT" @@ -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 = "*" } @@ -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 = "*" } @@ -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 = "*" } @@ -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 = "*" } @@ -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 = "*" } @@ -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 = "*" } diff --git a/README.md b/README.md index 332cb32..afa670e 100644 --- a/README.md +++ b/README.md @@ -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] @@ -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; @@ -111,7 +111,7 @@ target/release/pg_idkit-pg16 ├── home │   └── │   └── .pgrx -│   └── 16.2 +│   └── 17.0 │   └── pgrx-install │   ├── lib │   │   └── postgresql @@ -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//.pgrx/16.2/pgrx-install/lib/postgresql/pg_idkit.so` -- `target/release/home//.pgrx/16.2/pgrx-install/share/postgresql/extension/pg_idkit--0.2.3.sql` -- `target/release/home//.pgrx/16.2/pgrx-install/share/postgresql/extension/pg_idkit.control` +- `target/release/home//.pgrx/17.0/pgrx-install/lib/postgresql/pg_idkit.so` +- `target/release/home//.pgrx/17.0/pgrx-install/share/postgresql/extension/pg_idkit--0.2.3.sql` +- `target/release/home//.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. @@ -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;