Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare pgrx v0.11.2 #1425

Merged
merged 1 commit into from
Dec 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
204 changes: 135 additions & 69 deletions Cargo.lock

Large diffs are not rendered by default.

6 changes: 3 additions & 3 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.11.1"
version = "0.11.2"
authors = ["PgCentral Foundation, Inc. <contact@pgcentral.org>"]
license = "MIT"
description = "Cargo subcommand for 'pgrx' to make Postgres extension development easy"
Expand All @@ -33,8 +33,8 @@ semver = "1.0.20"
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.11.1" }
pgrx-sql-entity-graph = { path = "../pgrx-sql-entity-graph", version = "=0.11.1" }
pgrx-pg-config = { path = "../pgrx-pg-config", version = "=0.11.2" }
pgrx-sql-entity-graph = { path = "../pgrx-sql-entity-graph", version = "=0.11.2" }
prettyplease = "0.2.15"
proc-macro2 = { version = "1.0.69", features = [ "span-locations" ] }
quote = "1.0.33"
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.11.1"
pgrx = "=0.11.2"

[dev-dependencies]
pgrx-tests = "=0.11.1"
pgrx-tests = "=0.11.2"

[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.11.1"
pgrx = "=0.11.2"

[dev-dependencies]
pgrx-tests = "=0.11.1"
pgrx-tests = "=0.11.2"
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.11.1"
version = "0.11.2"
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.11.1" }
pgrx-sql-entity-graph = { path = "../pgrx-sql-entity-graph", version = "=0.11.2" }
proc-macro2 = "1.0.69"
quote = "1.0.33"
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.11.1"
version = "0.11.2"
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.11.1"
version = "0.11.2"
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,8 +40,8 @@ rustdoc-args = ["--cfg", "docsrs"]

[dependencies]
memoffset = "0.9.0"
pgrx-macros = { path = "../pgrx-macros/", version = "=0.11.1" }
pgrx-sql-entity-graph = { path = "../pgrx-sql-entity-graph/", version = "=0.11.1" }
pgrx-macros = { path = "../pgrx-macros/", version = "=0.11.2" }
pgrx-sql-entity-graph = { path = "../pgrx-sql-entity-graph/", version = "=0.11.2" }
serde = { version = "1.0", features = [ "derive" ] } # impls on pub types
# polyfill until #![feature(strict_provenance)] stabilizes
sptr = "0.3"
Expand All @@ -50,7 +50,7 @@ libc = "0.2"
[build-dependencies]
bindgen = { version = "0.68.1", default-features = false, features = ["runtime"] }
clang-sys = { version = "1", features = ["clang_6_0", "runtime"] }
pgrx-pg-config= { path = "../pgrx-pg-config/", version = "=0.11.1" }
pgrx-pg-config= { path = "../pgrx-pg-config/", version = "=0.11.2" }
proc-macro2 = "1.0.69"
quote = "1.0.33"
syn = { version = "1.0.109", features = [ "extra-traits", "full", "fold", "parsing" ] }
Expand Down
21 changes: 21 additions & 0 deletions pgrx-pg-sys/src/include/pg12.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31587,6 +31587,27 @@ extern "C" {
typeName: *const ::std::os::raw::c_char,
typeNamespace: Oid,
) -> bool;
pub fn RelationCreateStorage(
rnode: RelFileNode,
relpersistence: ::std::os::raw::c_char,
) -> SMgrRelation;
pub fn RelationDropStorage(rel: Relation);
pub fn RelationPreserveStorage(rnode: RelFileNode, atCommit: bool);
pub fn RelationTruncate(rel: Relation, nblocks: BlockNumber);
pub fn RelationCopyStorage(
src: SMgrRelation,
dst: SMgrRelation,
forkNum: ForkNumber,
relpersistence: ::std::os::raw::c_char,
);
pub fn smgrDoPendingDeletes(isCommit: bool);
pub fn smgrGetPendingDeletes(
forCommit: bool,
ptr: *mut *mut RelFileNode,
) -> ::std::os::raw::c_int;
pub fn AtSubCommit_smgr();
pub fn AtSubAbort_smgr();
pub fn PostPrepare_smgr();
pub fn CommentObject(stmt: *mut CommentStmt) -> ObjectAddress;
pub fn DeleteComments(oid: Oid, classoid: Oid, subid: int32);
pub fn CreateComments(
Expand Down
28 changes: 28 additions & 0 deletions pgrx-pg-sys/src/include/pg13.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32692,6 +32692,33 @@ extern "C" {
typeName: *const ::std::os::raw::c_char,
typeNamespace: Oid,
) -> bool;
pub fn RelationCreateStorage(
rnode: RelFileNode,
relpersistence: ::std::os::raw::c_char,
) -> SMgrRelation;
pub fn RelationDropStorage(rel: Relation);
pub fn RelationPreserveStorage(rnode: RelFileNode, atCommit: bool);
pub fn RelationPreTruncate(rel: Relation);
pub fn RelationTruncate(rel: Relation, nblocks: BlockNumber);
pub fn RelationCopyStorage(
src: SMgrRelation,
dst: SMgrRelation,
forkNum: ForkNumber,
relpersistence: ::std::os::raw::c_char,
);
pub fn RelFileNodeSkippingWAL(rnode: RelFileNode) -> bool;
pub fn EstimatePendingSyncsSpace() -> Size;
pub fn SerializePendingSyncs(maxSize: Size, startAddress: *mut ::std::os::raw::c_char);
pub fn RestorePendingSyncs(startAddress: *mut ::std::os::raw::c_char);
pub fn smgrDoPendingDeletes(isCommit: bool);
pub fn smgrDoPendingSyncs(isCommit: bool, isParallelWorker: bool);
pub fn smgrGetPendingDeletes(
forCommit: bool,
ptr: *mut *mut RelFileNode,
) -> ::std::os::raw::c_int;
pub fn AtSubCommit_smgr();
pub fn AtSubAbort_smgr();
pub fn PostPrepare_smgr();
pub fn CommentObject(stmt: *mut CommentStmt) -> ObjectAddress;
pub fn DeleteComments(oid: Oid, classoid: Oid, subid: int32);
pub fn CreateComments(
Expand Down Expand Up @@ -40909,6 +40936,7 @@ extern "C" {
pub static mut no_such_variable: ::std::os::raw::c_int;
pub static mut namespace_search_path: *mut ::std::os::raw::c_char;
pub static mut object_access_hook: object_access_hook_type;
pub static mut wal_skip_threshold: ::std::os::raw::c_int;
pub static mut ExplainOneQuery_hook: ExplainOneQuery_hook_type;
pub static mut explain_get_index_name_hook: explain_get_index_name_hook_type;
pub static mut allow_in_place_tablespaces: bool;
Expand Down
28 changes: 28 additions & 0 deletions pgrx-pg-sys/src/include/pg14.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34016,6 +34016,33 @@ extern "C" {
rangeTypeName: *const ::std::os::raw::c_char,
typeNamespace: Oid,
) -> *mut ::std::os::raw::c_char;
pub fn RelationCreateStorage(
rnode: RelFileNode,
relpersistence: ::std::os::raw::c_char,
) -> SMgrRelation;
pub fn RelationDropStorage(rel: Relation);
pub fn RelationPreserveStorage(rnode: RelFileNode, atCommit: bool);
pub fn RelationPreTruncate(rel: Relation);
pub fn RelationTruncate(rel: Relation, nblocks: BlockNumber);
pub fn RelationCopyStorage(
src: SMgrRelation,
dst: SMgrRelation,
forkNum: ForkNumber,
relpersistence: ::std::os::raw::c_char,
);
pub fn RelFileNodeSkippingWAL(rnode: RelFileNode) -> bool;
pub fn EstimatePendingSyncsSpace() -> Size;
pub fn SerializePendingSyncs(maxSize: Size, startAddress: *mut ::std::os::raw::c_char);
pub fn RestorePendingSyncs(startAddress: *mut ::std::os::raw::c_char);
pub fn smgrDoPendingDeletes(isCommit: bool);
pub fn smgrDoPendingSyncs(isCommit: bool, isParallelWorker: bool);
pub fn smgrGetPendingDeletes(
forCommit: bool,
ptr: *mut *mut RelFileNode,
) -> ::std::os::raw::c_int;
pub fn AtSubCommit_smgr();
pub fn AtSubAbort_smgr();
pub fn PostPrepare_smgr();
pub fn CommentObject(stmt: *mut CommentStmt) -> ObjectAddress;
pub fn DeleteComments(oid: Oid, classoid: Oid, subid: int32);
pub fn CreateComments(
Expand Down Expand Up @@ -42963,6 +42990,7 @@ extern "C" {
pub static LockTagTypeNames: [*const ::std::os::raw::c_char; 0usize];
pub static mut namespace_search_path: *mut ::std::os::raw::c_char;
pub static mut object_access_hook: object_access_hook_type;
pub static mut wal_skip_threshold: ::std::os::raw::c_int;
pub static mut ExplainOneQuery_hook: ExplainOneQuery_hook_type;
pub static mut explain_get_index_name_hook: explain_get_index_name_hook_type;
pub static mut allow_in_place_tablespaces: bool;
Expand Down
29 changes: 29 additions & 0 deletions pgrx-pg-sys/src/include/pg15.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34317,6 +34317,34 @@ extern "C" {
rangeTypeName: *const ::std::os::raw::c_char,
typeNamespace: Oid,
) -> *mut ::std::os::raw::c_char;
pub fn RelationCreateStorage(
rnode: RelFileNode,
relpersistence: ::std::os::raw::c_char,
register_delete: bool,
) -> SMgrRelation;
pub fn RelationDropStorage(rel: Relation);
pub fn RelationPreserveStorage(rnode: RelFileNode, atCommit: bool);
pub fn RelationPreTruncate(rel: Relation);
pub fn RelationTruncate(rel: Relation, nblocks: BlockNumber);
pub fn RelationCopyStorage(
src: SMgrRelation,
dst: SMgrRelation,
forkNum: ForkNumber,
relpersistence: ::std::os::raw::c_char,
);
pub fn RelFileNodeSkippingWAL(rnode: RelFileNode) -> bool;
pub fn EstimatePendingSyncsSpace() -> Size;
pub fn SerializePendingSyncs(maxSize: Size, startAddress: *mut ::std::os::raw::c_char);
pub fn RestorePendingSyncs(startAddress: *mut ::std::os::raw::c_char);
pub fn smgrDoPendingDeletes(isCommit: bool);
pub fn smgrDoPendingSyncs(isCommit: bool, isParallelWorker: bool);
pub fn smgrGetPendingDeletes(
forCommit: bool,
ptr: *mut *mut RelFileNode,
) -> ::std::os::raw::c_int;
pub fn AtSubCommit_smgr();
pub fn AtSubAbort_smgr();
pub fn PostPrepare_smgr();
pub fn CommentObject(stmt: *mut CommentStmt) -> ObjectAddress;
pub fn DeleteComments(oid: Oid, classoid: Oid, subid: int32);
pub fn CreateComments(
Expand Down Expand Up @@ -43483,6 +43511,7 @@ extern "C" {
pub static mut namespace_search_path: *mut ::std::os::raw::c_char;
pub static mut object_access_hook: object_access_hook_type;
pub static mut object_access_hook_str: object_access_hook_type_str;
pub static mut wal_skip_threshold: ::std::os::raw::c_int;
pub static mut ExplainOneQuery_hook: ExplainOneQuery_hook_type;
pub static mut explain_get_index_name_hook: explain_get_index_name_hook_type;
pub static mut allow_in_place_tablespaces: bool;
Expand Down
29 changes: 29 additions & 0 deletions pgrx-pg-sys/src/include/pg16.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34561,6 +34561,34 @@ extern "C" {
rangeTypeName: *const ::std::os::raw::c_char,
typeNamespace: Oid,
) -> *mut ::std::os::raw::c_char;
pub fn RelationCreateStorage(
rlocator: RelFileLocator,
relpersistence: ::std::os::raw::c_char,
register_delete: bool,
) -> SMgrRelation;
pub fn RelationDropStorage(rel: Relation);
pub fn RelationPreserveStorage(rlocator: RelFileLocator, atCommit: bool);
pub fn RelationPreTruncate(rel: Relation);
pub fn RelationTruncate(rel: Relation, nblocks: BlockNumber);
pub fn RelationCopyStorage(
src: SMgrRelation,
dst: SMgrRelation,
forkNum: ForkNumber,
relpersistence: ::std::os::raw::c_char,
);
pub fn RelFileLocatorSkippingWAL(rlocator: RelFileLocator) -> bool;
pub fn EstimatePendingSyncsSpace() -> Size;
pub fn SerializePendingSyncs(maxSize: Size, startAddress: *mut ::std::os::raw::c_char);
pub fn RestorePendingSyncs(startAddress: *mut ::std::os::raw::c_char);
pub fn smgrDoPendingDeletes(isCommit: bool);
pub fn smgrDoPendingSyncs(isCommit: bool, isParallelWorker: bool);
pub fn smgrGetPendingDeletes(
forCommit: bool,
ptr: *mut *mut RelFileLocator,
) -> ::std::os::raw::c_int;
pub fn AtSubCommit_smgr();
pub fn AtSubAbort_smgr();
pub fn PostPrepare_smgr();
pub fn CommentObject(stmt: *mut CommentStmt) -> ObjectAddress;
pub fn DeleteComments(oid: Oid, classoid: Oid, subid: int32);
pub fn CreateComments(
Expand Down Expand Up @@ -44423,6 +44451,7 @@ extern "C" {
pub static mut namespace_search_path: *mut ::std::os::raw::c_char;
pub static mut object_access_hook: object_access_hook_type;
pub static mut object_access_hook_str: object_access_hook_type_str;
pub static mut wal_skip_threshold: ::std::os::raw::c_int;
pub static mut Array_nulls: bool;
pub static mut ExplainOneQuery_hook: ExplainOneQuery_hook_type;
pub static mut explain_get_index_name_hook: explain_get_index_name_hook_type;
Expand Down
2 changes: 1 addition & 1 deletion pgrx-sql-entity-graph/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

[package]
name = "pgrx-sql-entity-graph"
version = "0.11.1"
version = "0.11.2"
authors = ["PgCentral Foundation, Inc. <contact@pgcentral.org>"]
license = "MIT"
description = "Sql Entity Graph for `pgrx`"
Expand Down
8 changes: 4 additions & 4 deletions pgrx-tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

[package]
name = "pgrx-tests"
version = "0.11.1"
version = "0.11.2"
authors = ["PgCentral Foundation, Inc. <contact@pgcentral.org>"]
license = "MIT"
description = "Test framework for 'pgrx'-based Postgres extensions"
Expand Down Expand Up @@ -49,8 +49,8 @@ clap-cargo = "0.11.0"
owo-colors = "3.5.0"
once_cell = "1.18.0"
libc = "0.2.149"
pgrx-macros = { path = "../pgrx-macros", version = "=0.11.1" }
pgrx-pg-config = { path = "../pgrx-pg-config", version = "=0.11.1" }
pgrx-macros = { path = "../pgrx-macros", version = "=0.11.2" }
pgrx-pg-config = { path = "../pgrx-pg-config", version = "=0.11.2" }
postgres = "0.19.7"
proptest = { version = "1", optional = true }
regex = "1.10.0"
Expand All @@ -68,4 +68,4 @@ trybuild = "1"
[dependencies.pgrx]
path = "../pgrx"
default-features = false
version = "=0.11.1"
version = "=0.11.2"
8 changes: 4 additions & 4 deletions pgrx/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

[package]
name = "pgrx"
version = "0.11.1"
version = "0.11.2"
authors = ["PgCentral Foundation, Inc. <contact@pgcentral.org>"]
license = "MIT"
description = "pgrx: A Rust framework for creating Postgres extensions"
Expand Down Expand Up @@ -44,9 +44,9 @@ no-default-features = true
rustc-args = ["--cfg", "docsrs"]

[dependencies]
pgrx-macros = { path = "../pgrx-macros", version = "=0.11.1" }
pgrx-pg-sys = { path = "../pgrx-pg-sys", version = "=0.11.1" }
pgrx-sql-entity-graph = { path = "../pgrx-sql-entity-graph", version = "=0.11.1" }
pgrx-macros = { path = "../pgrx-macros", version = "=0.11.2" }
pgrx-pg-sys = { path = "../pgrx-pg-sys", version = "=0.11.2" }
pgrx-sql-entity-graph = { path = "../pgrx-sql-entity-graph", version = "=0.11.2" }

# used to internally impl things
once_cell = "1.18.0" # polyfill until std::lazy::OnceCell stabilizes
Expand Down