Skip to content

Commit 231acce

Browse files
authored
Update version to 0.14.3 (#2063)
Welcome to pgrx v0.14.3. This point release fixes some issues discovered with the new `cargo pgrx regress` command. Additionally, bindings have been regenerated against the latest Postgres point releases that dropped on May 8th, 2025, though no new headers have been included. As always, please update with `cargo install cargo-pgrx --version 0.14.3 --locked` and update your extension `Cargo.toml` files with `cargo pgrx upgrade`. ## What's Changed * Fixes to `cargo pgrx regress` by @eeeebbbbrrrr in #2062 1) Pressing `<ENTER>` to "Accept[Y, n]?" a test no longer panics 2) While we still `git add <new expected/test_name.out>` files, we no longer do it to the expected files that we promote in the face of a test failure 3) Fix a bug where we'd think there's a `test_name.out` file to copy to `expected/` when that's not actually true 4) The `setup.sql` test is now treated as a normal test, and the only special handling around is that we'll only run it if we detect we need to 5) Cleanup test run output to be consistent between Postgres versions 6) Set `PGRX_REGRESS_TESTING=1` so an extension running under the regression test suite can detect it **Full Changelog**: v0.14.2...v0.14.3
1 parent 2cea87d commit 231acce

File tree

16 files changed

+111
-69
lines changed

16 files changed

+111
-69
lines changed

Cargo.lock

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ exclude = [
5555
cargo-pgrx = { path = "cargo-pgrx" }
5656

5757
[workspace.dependencies]
58-
pgrx-macros = { path = "./pgrx-macros", version = "=0.14.2" }
59-
pgrx-pg-sys = { path = "./pgrx-pg-sys", version = "=0.14.2" }
60-
pgrx-sql-entity-graph = { path = "./pgrx-sql-entity-graph", version = "=0.14.2" }
61-
pgrx-pg-config = { path = "./pgrx-pg-config", version = "=0.14.2" }
62-
pgrx-bindgen = { path = "./pgrx-bindgen", version = "=0.14.2" }
58+
pgrx-macros = { path = "./pgrx-macros", version = "=0.14.3" }
59+
pgrx-pg-sys = { path = "./pgrx-pg-sys", version = "=0.14.3" }
60+
pgrx-sql-entity-graph = { path = "./pgrx-sql-entity-graph", version = "=0.14.3" }
61+
pgrx-pg-config = { path = "./pgrx-pg-config", version = "=0.14.3" }
62+
pgrx-bindgen = { path = "./pgrx-bindgen", version = "=0.14.3" }
6363

6464
cargo_metadata = "0.18.0"
6565
cargo-edit = "=0.13.2" # format-preserving edits to cargo.toml

cargo-pgrx/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
[package]
1212
name = "cargo-pgrx"
13-
version = "0.14.2"
13+
version = "0.14.3"
1414
authors = ["PgCentral Foundation, Inc. <[email protected]>"]
1515
license = "MIT"
1616
description = "Cargo subcommand for 'pgrx' to make Postgres extension development easy"

cargo-pgrx/src/templates/cargo_toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ pg17 = ["pgrx/pg17", "pgrx-tests/pg17" ]
2020
pg_test = []
2121

2222
[dependencies]
23-
pgrx = "=0.14.2"
23+
pgrx = "=0.14.3"
2424

2525
[dev-dependencies]
26-
pgrx-tests = "=0.14.2"
26+
pgrx-tests = "=0.14.3"
2727

2828
[profile.dev]
2929
panic = "unwind"

pgrx-bindgen/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "pgrx-bindgen"
33
description = "additional bindgen support for pgrx"
4-
version = "0.14.2"
4+
version = "0.14.3"
55
edition = "2021"
66
license = "MIT"
77
homepage = "https://github.com/pgcentralfoundation/pgrx"

pgrx-macros/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
[package]
1212
name = "pgrx-macros"
13-
version = "0.14.2"
13+
version = "0.14.3"
1414
authors = ["PgCentral Foundation, Inc. <[email protected]>"]
1515
license = "MIT"
1616
description = "Proc Macros for 'pgrx'"

pgrx-pg-config/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
[package]
1212
name = "pgrx-pg-config"
13-
version = "0.14.2"
13+
version = "0.14.3"
1414
authors = ["PgCentral Foundation, Inc. <[email protected]>"]
1515
license = "MIT"
1616
description = "A Postgres pg_config wrapper for 'pgrx'"

pgrx-pg-sys/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
[package]
1212
name = "pgrx-pg-sys"
13-
version = "0.14.2"
13+
version = "0.14.3"
1414
authors = ["PgCentral Foundation, Inc. <[email protected]>"]
1515
license = "MIT"
1616
description = "Generated Rust bindings for Postgres internals, for use with 'pgrx'"

pgrx-pg-sys/src/include/pg13.rs

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -183,18 +183,18 @@ pub const MAXIMUM_ALIGNOF: u32 = 8;
183183
pub const MEMSET_LOOP_LIMIT: u32 = 1024;
184184
pub const PACKAGE_BUGREPORT: &::core::ffi::CStr = c"[email protected]";
185185
pub const PACKAGE_NAME: &::core::ffi::CStr = c"PostgreSQL";
186-
pub const PACKAGE_STRING: &::core::ffi::CStr = c"PostgreSQL 13.20";
186+
pub const PACKAGE_STRING: &::core::ffi::CStr = c"PostgreSQL 13.21";
187187
pub const PACKAGE_TARNAME: &::core::ffi::CStr = c"postgresql";
188188
pub const PACKAGE_URL: &::core::ffi::CStr = c"https://www.postgresql.org/";
189-
pub const PACKAGE_VERSION: &::core::ffi::CStr = c"13.20";
189+
pub const PACKAGE_VERSION: &::core::ffi::CStr = c"13.21";
190190
pub const PG_KRB_SRVNAM: &::core::ffi::CStr = c"postgres";
191191
pub const PG_MAJORVERSION: &::core::ffi::CStr = c"13";
192192
pub const PG_MAJORVERSION_NUM: u32 = 13;
193-
pub const PG_MINORVERSION_NUM: u32 = 20;
193+
pub const PG_MINORVERSION_NUM: u32 = 21;
194194
pub const PG_USE_STDBOOL: u32 = 1;
195-
pub const PG_VERSION: &::core::ffi::CStr = c"13.20";
196-
pub const PG_VERSION_NUM: u32 = 130020;
197-
pub const PG_VERSION_STR : & :: core :: ffi :: CStr = c"PostgreSQL 13.20 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, 64-bit" ;
195+
pub const PG_VERSION: &::core::ffi::CStr = c"13.21";
196+
pub const PG_VERSION_NUM: u32 = 130021;
197+
pub const PG_VERSION_STR : & :: core :: ffi :: CStr = c"PostgreSQL 13.21 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, 64-bit" ;
198198
pub const RELSEG_SIZE: u32 = 131072;
199199
pub const SIZEOF_BOOL: u32 = 1;
200200
pub const SIZEOF_LONG: u32 = 8;
@@ -255,7 +255,7 @@ pub const PG_BINARY_A: &::core::ffi::CStr = c"a";
255255
pub const PG_BINARY_R: &::core::ffi::CStr = c"r";
256256
pub const PG_BINARY_W: &::core::ffi::CStr = c"w";
257257
pub const PGINVALID_SOCKET: i32 = -1;
258-
pub const PG_BACKEND_VERSIONSTR: &::core::ffi::CStr = c"postgres (PostgreSQL) 13.20\n";
258+
pub const PG_BACKEND_VERSIONSTR: &::core::ffi::CStr = c"postgres (PostgreSQL) 13.21\n";
259259
pub const EXE: &::core::ffi::CStr = c"";
260260
pub const DEVNULL: &::core::ffi::CStr = c"/dev/null";
261261
pub const USE_REPL_SNPRINTF: u32 = 1;
@@ -32685,11 +32685,7 @@ unsafe extern "C-unwind" {
3268532685
pub fn XLogFlush(RecPtr: XLogRecPtr);
3268632686
pub fn XLogBackgroundFlush() -> bool;
3268732687
pub fn XLogNeedsFlush(RecPtr: XLogRecPtr) -> bool;
32688-
pub fn XLogFileInit(
32689-
segno: XLogSegNo,
32690-
use_existent: *mut bool,
32691-
use_lock: bool,
32692-
) -> ::core::ffi::c_int;
32688+
pub fn XLogFileInit(segno: XLogSegNo) -> ::core::ffi::c_int;
3269332689
pub fn XLogFileOpen(segno: XLogSegNo) -> ::core::ffi::c_int;
3269432690
pub fn CheckXLogRemoved(segno: XLogSegNo, tli: TimeLineID);
3269532691
pub fn XLogGetLastRemovedSegno() -> XLogSegNo;
@@ -36798,6 +36794,11 @@ unsafe extern "C-unwind" {
3679836794
encoding: ::core::ffi::c_int,
3679936795
mbstr: *const ::core::ffi::c_char,
3680036796
) -> ::core::ffi::c_int;
36797+
pub fn pg_encoding_mblen_or_incomplete(
36798+
encoding: ::core::ffi::c_int,
36799+
mbstr: *const ::core::ffi::c_char,
36800+
remaining: usize,
36801+
) -> ::core::ffi::c_int;
3680136802
pub fn pg_encoding_mblen_bounded(
3680236803
encoding: ::core::ffi::c_int,
3680336804
mbstr: *const ::core::ffi::c_char,
@@ -39807,6 +39808,11 @@ unsafe extern "C-unwind" {
3980739808
pub fn ReorderBufferGetOldestTXN(arg1: *mut ReorderBuffer) -> *mut ReorderBufferTXN;
3980839809
pub fn ReorderBufferGetOldestXmin(rb: *mut ReorderBuffer) -> TransactionId;
3980939810
pub fn ReorderBufferSetRestartPoint(arg1: *mut ReorderBuffer, ptr: XLogRecPtr);
39811+
pub fn ReorderBufferGetInvalidations(
39812+
rb: *mut ReorderBuffer,
39813+
xid: TransactionId,
39814+
msgs: *mut *mut SharedInvalidationMessage,
39815+
) -> uint32;
3981039816
pub fn StartupReorderBuffer();
3981139817
pub fn OutputPluginPrepareWrite(ctx: *mut LogicalDecodingContext, last_write: bool);
3981239818
pub fn OutputPluginWrite(ctx: *mut LogicalDecodingContext, last_write: bool);

pgrx-pg-sys/src/include/pg14.rs

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -183,18 +183,18 @@ pub const MAXIMUM_ALIGNOF: u32 = 8;
183183
pub const MEMSET_LOOP_LIMIT: u32 = 1024;
184184
pub const PACKAGE_BUGREPORT: &::core::ffi::CStr = c"[email protected]";
185185
pub const PACKAGE_NAME: &::core::ffi::CStr = c"PostgreSQL";
186-
pub const PACKAGE_STRING: &::core::ffi::CStr = c"PostgreSQL 14.17";
186+
pub const PACKAGE_STRING: &::core::ffi::CStr = c"PostgreSQL 14.18";
187187
pub const PACKAGE_TARNAME: &::core::ffi::CStr = c"postgresql";
188188
pub const PACKAGE_URL: &::core::ffi::CStr = c"https://www.postgresql.org/";
189-
pub const PACKAGE_VERSION: &::core::ffi::CStr = c"14.17";
189+
pub const PACKAGE_VERSION: &::core::ffi::CStr = c"14.18";
190190
pub const PG_KRB_SRVNAM: &::core::ffi::CStr = c"postgres";
191191
pub const PG_MAJORVERSION: &::core::ffi::CStr = c"14";
192192
pub const PG_MAJORVERSION_NUM: u32 = 14;
193-
pub const PG_MINORVERSION_NUM: u32 = 17;
193+
pub const PG_MINORVERSION_NUM: u32 = 18;
194194
pub const PG_USE_STDBOOL: u32 = 1;
195-
pub const PG_VERSION: &::core::ffi::CStr = c"14.17";
196-
pub const PG_VERSION_NUM: u32 = 140017;
197-
pub const PG_VERSION_STR : & :: core :: ffi :: CStr = c"PostgreSQL 14.17 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, 64-bit" ;
195+
pub const PG_VERSION: &::core::ffi::CStr = c"14.18";
196+
pub const PG_VERSION_NUM: u32 = 140018;
197+
pub const PG_VERSION_STR : & :: core :: ffi :: CStr = c"PostgreSQL 14.18 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, 64-bit" ;
198198
pub const RELSEG_SIZE: u32 = 131072;
199199
pub const SIZEOF_BOOL: u32 = 1;
200200
pub const SIZEOF_LONG: u32 = 8;
@@ -252,7 +252,7 @@ pub const PG_BINARY_A: &::core::ffi::CStr = c"a";
252252
pub const PG_BINARY_R: &::core::ffi::CStr = c"r";
253253
pub const PG_BINARY_W: &::core::ffi::CStr = c"w";
254254
pub const PGINVALID_SOCKET: i32 = -1;
255-
pub const PG_BACKEND_VERSIONSTR: &::core::ffi::CStr = c"postgres (PostgreSQL) 14.17\n";
255+
pub const PG_BACKEND_VERSIONSTR: &::core::ffi::CStr = c"postgres (PostgreSQL) 14.18\n";
256256
pub const EXE: &::core::ffi::CStr = c"";
257257
pub const DEVNULL: &::core::ffi::CStr = c"/dev/null";
258258
pub const USE_REPL_SNPRINTF: u32 = 1;
@@ -34623,11 +34623,7 @@ unsafe extern "C-unwind" {
3462334623
pub fn XLogFlush(RecPtr: XLogRecPtr);
3462434624
pub fn XLogBackgroundFlush() -> bool;
3462534625
pub fn XLogNeedsFlush(RecPtr: XLogRecPtr) -> bool;
34626-
pub fn XLogFileInit(
34627-
segno: XLogSegNo,
34628-
use_existent: *mut bool,
34629-
use_lock: bool,
34630-
) -> ::core::ffi::c_int;
34626+
pub fn XLogFileInit(segno: XLogSegNo) -> ::core::ffi::c_int;
3463134627
pub fn XLogFileOpen(segno: XLogSegNo) -> ::core::ffi::c_int;
3463234628
pub fn CheckXLogRemoved(segno: XLogSegNo, tli: TimeLineID);
3463334629
pub fn XLogGetLastRemovedSegno() -> XLogSegNo;
@@ -38973,6 +38969,11 @@ unsafe extern "C-unwind" {
3897338969
encoding: ::core::ffi::c_int,
3897438970
mbstr: *const ::core::ffi::c_char,
3897538971
) -> ::core::ffi::c_int;
38972+
pub fn pg_encoding_mblen_or_incomplete(
38973+
encoding: ::core::ffi::c_int,
38974+
mbstr: *const ::core::ffi::c_char,
38975+
remaining: usize,
38976+
) -> ::core::ffi::c_int;
3897638977
pub fn pg_encoding_mblen_bounded(
3897738978
encoding: ::core::ffi::c_int,
3897838979
mbstr: *const ::core::ffi::c_char,
@@ -42087,6 +42088,11 @@ unsafe extern "C-unwind" {
4208742088
pub fn ReorderBufferGetOldestTXN(arg1: *mut ReorderBuffer) -> *mut ReorderBufferTXN;
4208842089
pub fn ReorderBufferGetOldestXmin(rb: *mut ReorderBuffer) -> TransactionId;
4208942090
pub fn ReorderBufferSetRestartPoint(arg1: *mut ReorderBuffer, ptr: XLogRecPtr);
42091+
pub fn ReorderBufferGetInvalidations(
42092+
rb: *mut ReorderBuffer,
42093+
xid: TransactionId,
42094+
msgs: *mut *mut SharedInvalidationMessage,
42095+
) -> uint32;
4209042096
pub fn StartupReorderBuffer();
4209142097
pub fn OutputPluginPrepareWrite(ctx: *mut LogicalDecodingContext, last_write: bool);
4209242098
pub fn OutputPluginWrite(ctx: *mut LogicalDecodingContext, last_write: bool);

0 commit comments

Comments
 (0)