Skip to content

Commit

Permalink
Update version to 0.10.0-beta.3 (#1255)
Browse files Browse the repository at this point in the history
This is pgrx v0.10.0-beta.3. The 4th beta in our series that includes
Postgres 16 support. In this release, Postgres 16 support has been
updated to pg16beta3.

To work with this beta please install `cargo-pgrx` with `cargo install
cargo-pgrx --version 0.10.0-beta.3 --locked` and update the pgrx
dependency versions in any extension crates. Then make sure to add a
"pg16" feature flag.

## What's Changed

* update for pg16beta3 support by @eeeebbbbrrrr in
#1254

### Usability

* Derive Clone for Inet by @JelteF in
#1251
* Ensure bindgen gets all the `cppflags` it needs (on macOS, anyway) by
@thomcc in #1247

### Documentation

* Correct docs for datetime `From` impls by @workingjubilee in
#1253

### Internal
* Only enable line tables for profile.dev by @thomcc in
#1249
* Bump cargo-metadata and clap-cargo by @thomcc in
#1246
* Remove references to master branch by @thomcc in
#1243

**Full Changelog**:
v0.10.0-beta.2...v0.10.0-beta.3
  • Loading branch information
eeeebbbbrrrr authored Aug 10, 2023
1 parent 04380e9 commit c76c7e2
Show file tree
Hide file tree
Showing 18 changed files with 874 additions and 196 deletions.
138 changes: 60 additions & 78 deletions Cargo.lock

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions cargo-pgrx/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

[package]
name = "cargo-pgrx"
version = "0.10.0-beta.2"
version = "0.10.0-beta.3"
authors = ["PgCentral Foundation, Inc. <contact@pgcentral.org>"]
license = "MIT"
description = "Cargo subcommand for 'pgrx' to make Postgres extension development easy"
Expand All @@ -27,19 +27,19 @@ edition = "2021"
atty = "0.2.14"
cargo_metadata = "0.17.0"
cargo_toml = "0.15.3"
clap = { version = "4.3.19", features = [ "env", "suggestions", "cargo", "derive", "wrap_help" ] }
clap = { version = "4.3.21", features = [ "env", "suggestions", "cargo", "derive", "wrap_help" ] }
clap-cargo = { version = "0.11.0", features = [ "cargo_metadata" ] }
semver = "1.0.18"
owo-colors = { version = "3.5.0", features = [ "supports-colors" ] }
env_proxy = "0.4.1"
num_cpus = "1.16.0"
pgrx-pg-config = { path = "../pgrx-pg-config", version = "=0.10.0-beta.2" }
pgrx-sql-entity-graph = { path = "../pgrx-sql-entity-graph", version = "=0.10.0-beta.2" }
pgrx-pg-config = { path = "../pgrx-pg-config", version = "=0.10.0-beta.3" }
pgrx-sql-entity-graph = { path = "../pgrx-sql-entity-graph", version = "=0.10.0-beta.3" }
prettyplease = "0.2.12"
proc-macro2 = { version = "1.0.66", features = [ "span-locations" ] }
quote = "1.0.32"
rayon = "1.7.0"
regex = "1.9.1"
regex = "1.9.3"
ureq = "2.7.1"
url = "2.4.0"
serde = { version = "1.0", features = [ "derive" ] }
Expand All @@ -57,7 +57,7 @@ tracing = "0.1"
tracing-error = "0.2.0"
tracing-subscriber = { version = "0.3.17", features = [ "env-filter" ] }
flate2 = { version = "1.0.26", default-features = false, features = ["rust_backend"] }
tempfile = "3.7.0"
tempfile = "3.7.1"
nix = { version = "0.26", default-features = false, features = ["user"] }

[features]
Expand Down
4 changes: 2 additions & 2 deletions cargo-pgrx/src/templates/cargo_toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ pg16 = ["pgrx/pg16", "pgrx-tests/pg16" ]
pg_test = []

[dependencies]
pgrx = "=0.10.0-beta.2"
pgrx = "=0.10.0-beta.3"

[dev-dependencies]
pgrx-tests = "=0.10.0-beta.2"
pgrx-tests = "=0.10.0-beta.3"

[profile.dev]
panic = "unwind"
Expand Down
4 changes: 2 additions & 2 deletions nix/templates/default/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ pg16 = ["pgrx/pg16", "pgrx-tests/pg16" ]
pg_test = []

[dependencies]
pgrx = "=0.10.0-beta.2"
pgrx = "=0.10.0-beta.3"

[dev-dependencies]
pgrx-tests = "=0.10.0-beta.2"
pgrx-tests = "=0.10.0-beta.3"
tempfile = "3.2.0"
once_cell = "1.7.2"

Expand Down
4 changes: 2 additions & 2 deletions pgrx-macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

[package]
name = "pgrx-macros"
version = "0.10.0-beta.2"
version = "0.10.0-beta.3"
authors = ["PgCentral Foundation, Inc. <contact@pgcentral.org>"]
license = "MIT"
description = "Proc Macros for 'pgrx'"
Expand All @@ -31,7 +31,7 @@ rustc-args = ["--cfg", "docsrs"]
no-schema-generation = ["pgrx-sql-entity-graph/no-schema-generation"]

[dependencies]
pgrx-sql-entity-graph = { path = "../pgrx-sql-entity-graph", version = "=0.10.0-beta.2" }
pgrx-sql-entity-graph = { path = "../pgrx-sql-entity-graph", version = "=0.10.0-beta.3" }
proc-macro2 = "1.0.66"
quote = "1.0.32"
syn = { version = "1.0.109", features = [ "extra-traits", "full", "fold", "parsing" ] }
Expand Down
2 changes: 1 addition & 1 deletion pgrx-pg-config/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

[package]
name = "pgrx-pg-config"
version = "0.10.0-beta.2"
version = "0.10.0-beta.3"
authors = ["PgCentral Foundation, Inc. <contact@pgcentral.org>"]
license = "MIT"
description = "A Postgres pg_config wrapper for 'pgrx'"
Expand Down
8 changes: 4 additions & 4 deletions pgrx-pg-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

[package]
name = "pgrx-pg-sys"
version = "0.10.0-beta.2"
version = "0.10.0-beta.3"
authors = ["PgCentral Foundation, Inc. <contact@pgcentral.org>"]
license = "MIT"
description = "Generated Rust bindings for Postgres internals, for use with 'pgrx'"
Expand Down Expand Up @@ -40,16 +40,16 @@ rustdoc-args = ["--cfg", "docsrs"]

[dependencies]
memoffset = "0.9.0"
pgrx-macros = { path = "../pgrx-macros/", version = "=0.10.0-beta.2" }
pgrx-sql-entity-graph = { path = "../pgrx-sql-entity-graph/", version = "=0.10.0-beta.2" }
pgrx-macros = { path = "../pgrx-macros/", version = "=0.10.0-beta.3" }
pgrx-sql-entity-graph = { path = "../pgrx-sql-entity-graph/", version = "=0.10.0-beta.3" }
serde = { version = "1.0", features = [ "derive" ] } # impls on pub types
# polyfill until #![feature(strict_provenance)] stabilizes
sptr = "0.3"
libc = "0.2"

[build-dependencies]
bindgen = { version = "0.66.1", default-features = false, features = ["runtime"] }
pgrx-pg-config= { path = "../pgrx-pg-config/", version = "=0.10.0-beta.2" }
pgrx-pg-config= { path = "../pgrx-pg-config/", version = "=0.10.0-beta.3" }
proc-macro2 = "1.0.66"
quote = "1.0.32"
syn = { version = "1.0.109", features = [ "extra-traits", "full", "fold", "parsing" ] }
Expand Down
31 changes: 25 additions & 6 deletions pgrx-pg-sys/src/include/pg11.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,15 +311,15 @@ pub const MAXIMUM_ALIGNOF: u32 = 8;
pub const MEMSET_LOOP_LIMIT: u32 = 1024;
pub const PACKAGE_BUGREPORT: &[u8; 26] = b"pgsql-bugs@postgresql.org\0";
pub const PACKAGE_NAME: &[u8; 11] = b"PostgreSQL\0";
pub const PACKAGE_STRING: &[u8; 17] = b"PostgreSQL 11.20\0";
pub const PACKAGE_STRING: &[u8; 17] = b"PostgreSQL 11.21\0";
pub const PACKAGE_TARNAME: &[u8; 11] = b"postgresql\0";
pub const PACKAGE_URL: &[u8; 1] = b"\0";
pub const PACKAGE_VERSION: &[u8; 6] = b"11.20\0";
pub const PACKAGE_VERSION: &[u8; 6] = b"11.21\0";
pub const PG_KRB_SRVNAM: &[u8; 9] = b"postgres\0";
pub const PG_MAJORVERSION: &[u8; 3] = b"11\0";
pub const PG_VERSION: &[u8; 6] = b"11.20\0";
pub const PG_VERSION_NUM: u32 = 110020;
pub const PG_VERSION_STR : & [u8 ; 105] = b"PostgreSQL 11.20 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0, 64-bit\0" ;
pub const PG_VERSION: &[u8; 6] = b"11.21\0";
pub const PG_VERSION_NUM: u32 = 110021;
pub const PG_VERSION_STR : & [u8 ; 103] = b"PostgreSQL 11.21 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, 64-bit\0" ;
pub const RELSEG_SIZE: u32 = 131072;
pub const SIZEOF_BOOL: u32 = 1;
pub const SIZEOF_LONG: u32 = 8;
Expand Down Expand Up @@ -1171,7 +1171,7 @@ pub const NI_DGRAM: u32 = 16;
pub const _PWD_H: u32 = 1;
pub const NSS_BUFLEN_PASSWD: u32 = 1024;
pub const PGINVALID_SOCKET: i32 = -1;
pub const PG_BACKEND_VERSIONSTR: &[u8; 29] = b"postgres (PostgreSQL) 11.20\n\0";
pub const PG_BACKEND_VERSIONSTR: &[u8; 29] = b"postgres (PostgreSQL) 11.21\n\0";
pub const EXE: &[u8; 1] = b"\0";
pub const DEVNULL: &[u8; 10] = b"/dev/null\0";
pub const PG_IOLBF: u32 = 1;
Expand Down Expand Up @@ -2527,6 +2527,8 @@ pub const Anum_pg_database_dattablespace: u32 = 12;
pub const Anum_pg_database_datacl: u32 = 13;
pub const Natts_pg_database: u32 = 13;
pub const TemplateDbOid: Oid = Oid(1);
pub const DATCONNLIMIT_UNLIMITED: i32 = -1;
pub const DATCONNLIMIT_INVALID_DB: i32 = -2;
pub const EnumRelationId: Oid = Oid(3501);
pub const Anum_pg_enum_enumtypid: u32 = 1;
pub const Anum_pg_enum_enumsortorder: u32 = 2;
Expand Down Expand Up @@ -31695,6 +31697,14 @@ impl Default for FormData_pg_database {
}
}
pub type Form_pg_database = *mut FormData_pg_database;
#[pgrx_macros::pg_guard]
extern "C" {
pub fn database_is_invalid_form(datform: Form_pg_database) -> bool;
}
#[pgrx_macros::pg_guard]
extern "C" {
pub fn database_is_invalid_oid(dboid: Oid) -> bool;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct FormData_pg_enum {
Expand Down Expand Up @@ -39335,6 +39345,11 @@ extern "C" {
);
}
#[pgrx_macros::pg_guard]
extern "C" {
pub fn has_pseudoconstant_clauses(root: *mut PlannerInfo, restrictinfo_list: *mut List)
-> bool;
}
#[pgrx_macros::pg_guard]
extern "C" {
pub fn join_clause_is_movable_to(rinfo: *mut RestrictInfo, baserel: *mut RelOptInfo) -> bool;
}
Expand Down Expand Up @@ -57342,6 +57357,10 @@ extern "C" {
pub fn get_index_isreplident(index_oid: Oid) -> bool;
}
#[pgrx_macros::pg_guard]
extern "C" {
pub fn get_index_isvalid(index_oid: Oid) -> bool;
}
#[pgrx_macros::pg_guard]
extern "C" {
pub fn get_index_isclustered(index_oid: Oid) -> bool;
}
Expand Down
27 changes: 21 additions & 6 deletions pgrx-pg-sys/src/include/pg12.rs
Original file line number Diff line number Diff line change
Expand Up @@ -319,15 +319,15 @@ pub const MAXIMUM_ALIGNOF: u32 = 8;
pub const MEMSET_LOOP_LIMIT: u32 = 1024;
pub const PACKAGE_BUGREPORT: &[u8; 32] = b"pgsql-bugs@lists.postgresql.org\0";
pub const PACKAGE_NAME: &[u8; 11] = b"PostgreSQL\0";
pub const PACKAGE_STRING: &[u8; 17] = b"PostgreSQL 12.15\0";
pub const PACKAGE_STRING: &[u8; 17] = b"PostgreSQL 12.16\0";
pub const PACKAGE_TARNAME: &[u8; 11] = b"postgresql\0";
pub const PACKAGE_URL: &[u8; 1] = b"\0";
pub const PACKAGE_VERSION: &[u8; 6] = b"12.15\0";
pub const PACKAGE_VERSION: &[u8; 6] = b"12.16\0";
pub const PG_KRB_SRVNAM: &[u8; 9] = b"postgres\0";
pub const PG_MAJORVERSION: &[u8; 3] = b"12\0";
pub const PG_VERSION: &[u8; 6] = b"12.15\0";
pub const PG_VERSION_NUM: u32 = 120015;
pub const PG_VERSION_STR : & [u8 ; 105] = b"PostgreSQL 12.15 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0, 64-bit\0" ;
pub const PG_VERSION: &[u8; 6] = b"12.16\0";
pub const PG_VERSION_NUM: u32 = 120016;
pub const PG_VERSION_STR : & [u8 ; 103] = b"PostgreSQL 12.16 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, 64-bit\0" ;
pub const RELSEG_SIZE: u32 = 131072;
pub const SIZEOF_BOOL: u32 = 1;
pub const SIZEOF_LONG: u32 = 8;
Expand Down Expand Up @@ -1179,7 +1179,7 @@ pub const NI_DGRAM: u32 = 16;
pub const _PWD_H: u32 = 1;
pub const NSS_BUFLEN_PASSWD: u32 = 1024;
pub const PGINVALID_SOCKET: i32 = -1;
pub const PG_BACKEND_VERSIONSTR: &[u8; 29] = b"postgres (PostgreSQL) 12.15\n\0";
pub const PG_BACKEND_VERSIONSTR: &[u8; 29] = b"postgres (PostgreSQL) 12.16\n\0";
pub const EXE: &[u8; 1] = b"\0";
pub const DEVNULL: &[u8; 10] = b"/dev/null\0";
pub const USE_REPL_SNPRINTF: u32 = 1;
Expand Down Expand Up @@ -2586,6 +2586,8 @@ pub const Anum_pg_database_dattablespace: u32 = 13;
pub const Anum_pg_database_datacl: u32 = 14;
pub const Natts_pg_database: u32 = 14;
pub const TemplateDbOid: Oid = Oid(1);
pub const DATCONNLIMIT_UNLIMITED: i32 = -1;
pub const DATCONNLIMIT_INVALID_DB: i32 = -2;
pub const EnumRelationId: Oid = Oid(3501);
pub const Anum_pg_enum_oid: u32 = 1;
pub const Anum_pg_enum_enumtypid: u32 = 2;
Expand Down Expand Up @@ -31705,6 +31707,14 @@ impl Default for FormData_pg_database {
}
}
pub type Form_pg_database = *mut FormData_pg_database;
#[pgrx_macros::pg_guard]
extern "C" {
pub fn database_is_invalid_form(datform: Form_pg_database) -> bool;
}
#[pgrx_macros::pg_guard]
extern "C" {
pub fn database_is_invalid_oid(dboid: Oid) -> bool;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct FormData_pg_enum {
Expand Down Expand Up @@ -41233,6 +41243,11 @@ extern "C" {
);
}
#[pgrx_macros::pg_guard]
extern "C" {
pub fn has_pseudoconstant_clauses(root: *mut PlannerInfo, restrictinfo_list: *mut List)
-> bool;
}
#[pgrx_macros::pg_guard]
extern "C" {
pub fn join_clause_is_movable_to(rinfo: *mut RestrictInfo, baserel: *mut RelOptInfo) -> bool;
}
Expand Down
31 changes: 23 additions & 8 deletions pgrx-pg-sys/src/include/pg13.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ pub const ALIGNOF_LONG: u32 = 8;
pub const ALIGNOF_PG_INT128_TYPE: u32 = 16;
pub const ALIGNOF_SHORT: u32 = 2;
pub const BLCKSZ: u32 = 8192;
pub const CONFIGURE_ARGS : & [u8 ; 109] = b" '--prefix=/home/zombodb/.pgrx/13.11/pgrx-install' '--with-pgport=28813' '--enable-debug' '--enable-cassert'\0" ;
pub const CONFIGURE_ARGS : & [u8 ; 206] = b" '--prefix=/home/zombodb/.pgrx/13.12/pgrx-install' '--with-pgport=28813' '--enable-debug' '--enable-cassert' 'CPPFLAGS= -DMEMORY_CONTEXT_CHECKING=1 -DCLOBBER_FREED_MEMORY=1 -DRANDOMIZE_ALLOCATED_MEMORY=1 '\0" ;
pub const DEF_PGPORT: u32 = 28813;
pub const DEF_PGPORT_STR: &[u8; 6] = b"28813\0";
pub const ENABLE_THREAD_SAFETY: u32 = 1;
Expand Down Expand Up @@ -311,18 +311,18 @@ pub const MAXIMUM_ALIGNOF: u32 = 8;
pub const MEMSET_LOOP_LIMIT: u32 = 1024;
pub const PACKAGE_BUGREPORT: &[u8; 32] = b"pgsql-bugs@lists.postgresql.org\0";
pub const PACKAGE_NAME: &[u8; 11] = b"PostgreSQL\0";
pub const PACKAGE_STRING: &[u8; 17] = b"PostgreSQL 13.11\0";
pub const PACKAGE_STRING: &[u8; 17] = b"PostgreSQL 13.12\0";
pub const PACKAGE_TARNAME: &[u8; 11] = b"postgresql\0";
pub const PACKAGE_URL: &[u8; 28] = b"https://www.postgresql.org/\0";
pub const PACKAGE_VERSION: &[u8; 6] = b"13.11\0";
pub const PACKAGE_VERSION: &[u8; 6] = b"13.12\0";
pub const PG_KRB_SRVNAM: &[u8; 9] = b"postgres\0";
pub const PG_MAJORVERSION: &[u8; 3] = b"13\0";
pub const PG_MAJORVERSION_NUM: u32 = 13;
pub const PG_MINORVERSION_NUM: u32 = 11;
pub const PG_MINORVERSION_NUM: u32 = 12;
pub const PG_USE_STDBOOL: u32 = 1;
pub const PG_VERSION: &[u8; 6] = b"13.11\0";
pub const PG_VERSION_NUM: u32 = 130011;
pub const PG_VERSION_STR : & [u8 ; 105] = b"PostgreSQL 13.11 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0, 64-bit\0" ;
pub const PG_VERSION: &[u8; 6] = b"13.12\0";
pub const PG_VERSION_NUM: u32 = 130012;
pub const PG_VERSION_STR : & [u8 ; 103] = b"PostgreSQL 13.12 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, 64-bit\0" ;
pub const RELSEG_SIZE: u32 = 131072;
pub const SIZEOF_BOOL: u32 = 1;
pub const SIZEOF_LONG: u32 = 8;
Expand Down Expand Up @@ -1173,7 +1173,7 @@ pub const NI_DGRAM: u32 = 16;
pub const _PWD_H: u32 = 1;
pub const NSS_BUFLEN_PASSWD: u32 = 1024;
pub const PGINVALID_SOCKET: i32 = -1;
pub const PG_BACKEND_VERSIONSTR: &[u8; 29] = b"postgres (PostgreSQL) 13.11\n\0";
pub const PG_BACKEND_VERSIONSTR: &[u8; 29] = b"postgres (PostgreSQL) 13.12\n\0";
pub const EXE: &[u8; 1] = b"\0";
pub const DEVNULL: &[u8; 10] = b"/dev/null\0";
pub const USE_REPL_SNPRINTF: u32 = 1;
Expand Down Expand Up @@ -2784,6 +2784,8 @@ pub const Anum_pg_database_dattablespace: u32 = 13;
pub const Anum_pg_database_datacl: u32 = 14;
pub const Natts_pg_database: u32 = 14;
pub const TemplateDbOid: Oid = Oid(1);
pub const DATCONNLIMIT_UNLIMITED: i32 = -1;
pub const DATCONNLIMIT_INVALID_DB: i32 = -2;
pub const EnumRelationId: Oid = Oid(3501);
pub const Anum_pg_enum_oid: u32 = 1;
pub const Anum_pg_enum_enumtypid: u32 = 2;
Expand Down Expand Up @@ -32389,6 +32391,14 @@ impl Default for FormData_pg_database {
}
}
pub type Form_pg_database = *mut FormData_pg_database;
#[pgrx_macros::pg_guard]
extern "C" {
pub fn database_is_invalid_form(datform: Form_pg_database) -> bool;
}
#[pgrx_macros::pg_guard]
extern "C" {
pub fn database_is_invalid_oid(dboid: Oid) -> bool;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct FormData_pg_enum {
Expand Down Expand Up @@ -42683,6 +42693,11 @@ extern "C" {
);
}
#[pgrx_macros::pg_guard]
extern "C" {
pub fn has_pseudoconstant_clauses(root: *mut PlannerInfo, restrictinfo_list: *mut List)
-> bool;
}
#[pgrx_macros::pg_guard]
extern "C" {
pub fn join_clause_is_movable_to(rinfo: *mut RestrictInfo, baserel: *mut RelOptInfo) -> bool;
}
Expand Down
Loading

0 comments on commit c76c7e2

Please sign in to comment.