Skip to content

Commit 809132b

Browse files
authored
Update version to 0.7.2 (#1058)
1 parent 537080a commit 809132b

File tree

16 files changed

+979
-119
lines changed

16 files changed

+979
-119
lines changed

Cargo.lock

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

cargo-pgx/Cargo.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cargo-pgx"
3-
version = "0.7.1"
3+
version = "0.7.2"
44
authors = ["ZomboDB, LLC <[email protected]>"]
55
license = "MIT"
66
description = "Cargo subcommand for 'pgx' to make Postgres extension development easy"
@@ -17,16 +17,16 @@ edition = "2021"
1717
atty = "0.2.14"
1818
cargo_metadata = "0.15.3"
1919
cargo_toml = "0.11.8"
20-
clap = { version = "4.1.4", features = [ "env", "suggestions", "cargo", "derive", "wrap_help" ] }
20+
clap = { version = "4.1.6", features = [ "env", "suggestions", "cargo", "derive", "wrap_help" ] }
2121
clap-cargo = { version = "0.10.0", features = [ "cargo_metadata" ] }
2222
semver = "1.0.16"
2323
owo-colors = { version = "3.5.0", features = [ "supports-colors" ] }
2424
env_proxy = "0.4.1"
2525
num_cpus = "1.15.0"
26-
pgx-pg-config = { path = "../pgx-pg-config", version = "=0.7.1" }
27-
pgx-sql-entity-graph = { path = "../pgx-sql-entity-graph", version = "=0.7.1" }
26+
pgx-pg-config = { path = "../pgx-pg-config", version = "=0.7.2" }
27+
pgx-sql-entity-graph = { path = "../pgx-sql-entity-graph", version = "=0.7.2" }
2828
prettyplease = "0.1.23"
29-
proc-macro2 = { version = "1.0.50", features = [ "span-locations" ] }
29+
proc-macro2 = { version = "1.0.51", features = [ "span-locations" ] }
3030
quote = "1.0.23"
3131
rayon = "1.6.1"
3232
regex = "1.7.1"
@@ -35,12 +35,12 @@ url = "2.3.1"
3535
serde = { version = "1.0.152", features = [ "derive" ] }
3636
serde_derive = "1.0.152"
3737
serde-xml-rs = "0.5.1"
38-
syn = { version = "1.0.107", features = [ "extra-traits", "full", "fold", "parsing" ] }
38+
syn = { version = "1.0.108", features = [ "extra-traits", "full", "fold", "parsing" ] }
3939
unescape = "0.1.0"
4040
fork = "0.1.20"
4141
libloading = "0.7.4"
4242
object = "0.28.4"
43-
once_cell = "1.17.0"
43+
once_cell = "1.17.1"
4444
eyre = "0.6.8"
4545
color-eyre = "0.6.2"
4646
tracing = "0.1.37"

cargo-pgx/src/templates/cargo_toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ pg15 = ["pgx/pg15", "pgx-tests/pg15" ]
1616
pg_test = []
1717

1818
[dependencies]
19-
pgx = "=0.7.1"
19+
pgx = "=0.7.2"
2020

2121
[dev-dependencies]
22-
pgx-tests = "=0.7.1"
22+
pgx-tests = "=0.7.2"
2323

2424
[profile.dev]
2525
panic = "unwind"

nix/templates/default/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ pg15 = ["pgx/pg15", "pgx-tests/pg15" ]
1616
pg_test = []
1717

1818
[dependencies]
19-
pgx = "=0.7.1"
19+
pgx = "=0.7.2"
2020

2121
[dev-dependencies]
22-
pgx-tests = "=0.7.1"
22+
pgx-tests = "=0.7.2"
2323
tempfile = "3.2.0"
2424
once_cell = "1.7.2"
2525

pgx-examples/bytea/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pg_test = []
1717

1818
[dependencies]
1919
pgx = { path = "../../pgx", default-features = false }
20-
libflate = "1.2.0"
20+
libflate = "1.3.0"
2121

2222
[dev-dependencies]
2323
pgx-tests = { path = "../../pgx-tests" }

pgx-macros/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pgx-macros"
3-
version = "0.7.1"
3+
version = "0.7.2"
44
authors = ["ZomboDB, LLC <[email protected]>"]
55
license = "MIT"
66
description = "Proc Macros for 'pgx'"
@@ -21,10 +21,10 @@ rustc-args = ["--cfg", "docsrs"]
2121
no-schema-generation = ["pgx-sql-entity-graph/no-schema-generation"]
2222

2323
[dependencies]
24-
pgx-sql-entity-graph = { path = "../pgx-sql-entity-graph", version = "=0.7.1" }
25-
proc-macro2 = "1.0.50"
24+
pgx-sql-entity-graph = { path = "../pgx-sql-entity-graph", version = "=0.7.2" }
25+
proc-macro2 = "1.0.51"
2626
quote = "1.0.23"
27-
syn = { version = "1.0.107", features = [ "extra-traits", "full", "fold", "parsing" ] }
27+
syn = { version = "1.0.108", features = [ "extra-traits", "full", "fold", "parsing" ] }
2828

2929
[dev-dependencies]
3030
serde = { version = "1.0.152", features = ["derive"] } # for Documentation examples

pgx-pg-config/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pgx-pg-config"
3-
version = "0.7.1"
3+
version = "0.7.2"
44
authors = ["ZomboDB, LLC <[email protected]>"]
55
license = "MIT"
66
description = "A Postgres pg_config wrapper for 'pgx'"
@@ -19,6 +19,6 @@ pathsearch = "0.2.0"
1919
owo-colors = "3.5.0"
2020
serde = { version = "1.0.152", features = [ "derive" ] }
2121
serde_derive = "1.0.152"
22-
serde_json = "1.0.91"
22+
serde_json = "1.0.93"
2323
toml = "0.5.11"
2424
url = "2.3.1"

pgx-pg-sys/Cargo.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pgx-pg-sys"
3-
version = "0.7.1"
3+
version = "0.7.2"
44
authors = ["ZomboDB, LLC <[email protected]>"]
55
license = "MIT"
66
description = "Generated Rust bindings for Postgres internals, for use with 'pgx'"
@@ -29,19 +29,19 @@ rustdoc-args = ["--cfg", "docsrs"]
2929

3030
[dependencies]
3131
memoffset = "0.6.5"
32-
pgx-macros = { path = "../pgx-macros/", version = "=0.7.1" }
33-
pgx-sql-entity-graph = { path = "../pgx-sql-entity-graph/", version = "=0.7.1" }
32+
pgx-macros = { path = "../pgx-macros/", version = "=0.7.2" }
33+
pgx-sql-entity-graph = { path = "../pgx-sql-entity-graph/", version = "=0.7.2" }
3434
serde = { version = "1.0.152", features = [ "derive" ] } # impls on pub types
3535
# polyfill until #![feature(strict_provenance)] stabilizes
3636
sptr = "0.3"
3737
libc = "0.2"
3838

3939
[build-dependencies]
4040
bindgen = { version = "0.60.1", default-features = false, features = ["runtime"] }
41-
pgx-pg-config= { path = "../pgx-pg-config/", version = "=0.7.1" }
42-
proc-macro2 = "1.0.50"
41+
pgx-pg-config= { path = "../pgx-pg-config/", version = "=0.7.2" }
42+
proc-macro2 = "1.0.51"
4343
quote = "1.0.23"
44-
syn = { version = "1.0.107", features = [ "extra-traits", "full", "fold", "parsing" ] }
44+
syn = { version = "1.0.108", features = [ "extra-traits", "full", "fold", "parsing" ] }
4545
eyre = "0.6.8"
4646
shlex = "1.1.0" # shell lexing, also used by many of our deps
47-
once_cell = "1.17.0"
47+
once_cell = "1.17.1"

pgx-pg-sys/src/pg11.rs

Lines changed: 159 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38636,6 +38636,165 @@ extern "C" {
3863638636
missing_ok: bool,
3863738637
);
3863838638
}
38639+
pub type TYPCATEGORY = ::std::os::raw::c_char;
38640+
pub const CoercionPathType_COERCION_PATH_NONE: CoercionPathType = 0;
38641+
pub const CoercionPathType_COERCION_PATH_FUNC: CoercionPathType = 1;
38642+
pub const CoercionPathType_COERCION_PATH_RELABELTYPE: CoercionPathType = 2;
38643+
pub const CoercionPathType_COERCION_PATH_ARRAYCOERCE: CoercionPathType = 3;
38644+
pub const CoercionPathType_COERCION_PATH_COERCEVIAIO: CoercionPathType = 4;
38645+
pub type CoercionPathType = ::std::os::raw::c_uint;
38646+
#[pgx_macros::pg_guard]
38647+
extern "C" {
38648+
pub fn IsBinaryCoercible(srctype: Oid, targettype: Oid) -> bool;
38649+
}
38650+
#[pgx_macros::pg_guard]
38651+
extern "C" {
38652+
pub fn IsPreferredType(category: TYPCATEGORY, type_: Oid) -> bool;
38653+
}
38654+
#[pgx_macros::pg_guard]
38655+
extern "C" {
38656+
pub fn TypeCategory(type_: Oid) -> TYPCATEGORY;
38657+
}
38658+
#[pgx_macros::pg_guard]
38659+
extern "C" {
38660+
pub fn coerce_to_target_type(
38661+
pstate: *mut ParseState,
38662+
expr: *mut Node,
38663+
exprtype: Oid,
38664+
targettype: Oid,
38665+
targettypmod: int32,
38666+
ccontext: CoercionContext,
38667+
cformat: CoercionForm,
38668+
location: ::std::os::raw::c_int,
38669+
) -> *mut Node;
38670+
}
38671+
#[pgx_macros::pg_guard]
38672+
extern "C" {
38673+
pub fn can_coerce_type(
38674+
nargs: ::std::os::raw::c_int,
38675+
input_typeids: *mut Oid,
38676+
target_typeids: *mut Oid,
38677+
ccontext: CoercionContext,
38678+
) -> bool;
38679+
}
38680+
#[pgx_macros::pg_guard]
38681+
extern "C" {
38682+
pub fn coerce_type(
38683+
pstate: *mut ParseState,
38684+
node: *mut Node,
38685+
inputTypeId: Oid,
38686+
targetTypeId: Oid,
38687+
targetTypeMod: int32,
38688+
ccontext: CoercionContext,
38689+
cformat: CoercionForm,
38690+
location: ::std::os::raw::c_int,
38691+
) -> *mut Node;
38692+
}
38693+
#[pgx_macros::pg_guard]
38694+
extern "C" {
38695+
pub fn coerce_to_domain(
38696+
arg: *mut Node,
38697+
baseTypeId: Oid,
38698+
baseTypeMod: int32,
38699+
typeId: Oid,
38700+
ccontext: CoercionContext,
38701+
cformat: CoercionForm,
38702+
location: ::std::os::raw::c_int,
38703+
hideInputCoercion: bool,
38704+
) -> *mut Node;
38705+
}
38706+
#[pgx_macros::pg_guard]
38707+
extern "C" {
38708+
pub fn coerce_to_boolean(
38709+
pstate: *mut ParseState,
38710+
node: *mut Node,
38711+
constructName: *const ::std::os::raw::c_char,
38712+
) -> *mut Node;
38713+
}
38714+
#[pgx_macros::pg_guard]
38715+
extern "C" {
38716+
pub fn coerce_to_specific_type(
38717+
pstate: *mut ParseState,
38718+
node: *mut Node,
38719+
targetTypeId: Oid,
38720+
constructName: *const ::std::os::raw::c_char,
38721+
) -> *mut Node;
38722+
}
38723+
#[pgx_macros::pg_guard]
38724+
extern "C" {
38725+
pub fn coerce_to_specific_type_typmod(
38726+
pstate: *mut ParseState,
38727+
node: *mut Node,
38728+
targetTypeId: Oid,
38729+
targetTypmod: int32,
38730+
constructName: *const ::std::os::raw::c_char,
38731+
) -> *mut Node;
38732+
}
38733+
#[pgx_macros::pg_guard]
38734+
extern "C" {
38735+
pub fn parser_coercion_errposition(
38736+
pstate: *mut ParseState,
38737+
coerce_location: ::std::os::raw::c_int,
38738+
input_expr: *mut Node,
38739+
) -> ::std::os::raw::c_int;
38740+
}
38741+
#[pgx_macros::pg_guard]
38742+
extern "C" {
38743+
pub fn select_common_type(
38744+
pstate: *mut ParseState,
38745+
exprs: *mut List,
38746+
context: *const ::std::os::raw::c_char,
38747+
which_expr: *mut *mut Node,
38748+
) -> Oid;
38749+
}
38750+
#[pgx_macros::pg_guard]
38751+
extern "C" {
38752+
pub fn coerce_to_common_type(
38753+
pstate: *mut ParseState,
38754+
node: *mut Node,
38755+
targetTypeId: Oid,
38756+
context: *const ::std::os::raw::c_char,
38757+
) -> *mut Node;
38758+
}
38759+
#[pgx_macros::pg_guard]
38760+
extern "C" {
38761+
pub fn check_generic_type_consistency(
38762+
actual_arg_types: *mut Oid,
38763+
declared_arg_types: *mut Oid,
38764+
nargs: ::std::os::raw::c_int,
38765+
) -> bool;
38766+
}
38767+
#[pgx_macros::pg_guard]
38768+
extern "C" {
38769+
pub fn enforce_generic_type_consistency(
38770+
actual_arg_types: *mut Oid,
38771+
declared_arg_types: *mut Oid,
38772+
nargs: ::std::os::raw::c_int,
38773+
rettype: Oid,
38774+
allow_poly: bool,
38775+
) -> Oid;
38776+
}
38777+
#[pgx_macros::pg_guard]
38778+
extern "C" {
38779+
pub fn resolve_generic_type(
38780+
declared_type: Oid,
38781+
context_actual_type: Oid,
38782+
context_declared_type: Oid,
38783+
) -> Oid;
38784+
}
38785+
#[pgx_macros::pg_guard]
38786+
extern "C" {
38787+
pub fn find_coercion_pathway(
38788+
targetTypeId: Oid,
38789+
sourceTypeId: Oid,
38790+
ccontext: CoercionContext,
38791+
funcid: *mut Oid,
38792+
) -> CoercionPathType;
38793+
}
38794+
#[pgx_macros::pg_guard]
38795+
extern "C" {
38796+
pub fn find_typmod_coercion_function(typeId: Oid, funcid: *mut Oid) -> CoercionPathType;
38797+
}
3863938798
pub const BackslashQuoteType_BACKSLASH_QUOTE_OFF: BackslashQuoteType = 0;
3864038799
pub const BackslashQuoteType_BACKSLASH_QUOTE_ON: BackslashQuoteType = 1;
3864138800
pub const BackslashQuoteType_BACKSLASH_QUOTE_SAFE_ENCODING: BackslashQuoteType = 2;

0 commit comments

Comments
 (0)