Skip to content

Commit

Permalink
Update version to 0.7.2 (#1058)
Browse files Browse the repository at this point in the history
  • Loading branch information
eeeebbbbrrrr authored Feb 23, 2023
1 parent 537080a commit 809132b
Show file tree
Hide file tree
Showing 16 changed files with 979 additions and 119 deletions.
165 changes: 89 additions & 76 deletions Cargo.lock

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions cargo-pgx/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cargo-pgx"
version = "0.7.1"
version = "0.7.2"
authors = ["ZomboDB, LLC <[email protected]>"]
license = "MIT"
description = "Cargo subcommand for 'pgx' to make Postgres extension development easy"
Expand All @@ -17,16 +17,16 @@ edition = "2021"
atty = "0.2.14"
cargo_metadata = "0.15.3"
cargo_toml = "0.11.8"
clap = { version = "4.1.4", features = [ "env", "suggestions", "cargo", "derive", "wrap_help" ] }
clap = { version = "4.1.6", features = [ "env", "suggestions", "cargo", "derive", "wrap_help" ] }
clap-cargo = { version = "0.10.0", features = [ "cargo_metadata" ] }
semver = "1.0.16"
owo-colors = { version = "3.5.0", features = [ "supports-colors" ] }
env_proxy = "0.4.1"
num_cpus = "1.15.0"
pgx-pg-config = { path = "../pgx-pg-config", version = "=0.7.1" }
pgx-sql-entity-graph = { path = "../pgx-sql-entity-graph", version = "=0.7.1" }
pgx-pg-config = { path = "../pgx-pg-config", version = "=0.7.2" }
pgx-sql-entity-graph = { path = "../pgx-sql-entity-graph", version = "=0.7.2" }
prettyplease = "0.1.23"
proc-macro2 = { version = "1.0.50", features = [ "span-locations" ] }
proc-macro2 = { version = "1.0.51", features = [ "span-locations" ] }
quote = "1.0.23"
rayon = "1.6.1"
regex = "1.7.1"
Expand All @@ -35,12 +35,12 @@ url = "2.3.1"
serde = { version = "1.0.152", features = [ "derive" ] }
serde_derive = "1.0.152"
serde-xml-rs = "0.5.1"
syn = { version = "1.0.107", features = [ "extra-traits", "full", "fold", "parsing" ] }
syn = { version = "1.0.108", features = [ "extra-traits", "full", "fold", "parsing" ] }
unescape = "0.1.0"
fork = "0.1.20"
libloading = "0.7.4"
object = "0.28.4"
once_cell = "1.17.0"
once_cell = "1.17.1"
eyre = "0.6.8"
color-eyre = "0.6.2"
tracing = "0.1.37"
Expand Down
4 changes: 2 additions & 2 deletions cargo-pgx/src/templates/cargo_toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ pg15 = ["pgx/pg15", "pgx-tests/pg15" ]
pg_test = []

[dependencies]
pgx = "=0.7.1"
pgx = "=0.7.2"

[dev-dependencies]
pgx-tests = "=0.7.1"
pgx-tests = "=0.7.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 @@ -16,10 +16,10 @@ pg15 = ["pgx/pg15", "pgx-tests/pg15" ]
pg_test = []

[dependencies]
pgx = "=0.7.1"
pgx = "=0.7.2"

[dev-dependencies]
pgx-tests = "=0.7.1"
pgx-tests = "=0.7.2"
tempfile = "3.2.0"
once_cell = "1.7.2"

Expand Down
2 changes: 1 addition & 1 deletion pgx-examples/bytea/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pg_test = []

[dependencies]
pgx = { path = "../../pgx", default-features = false }
libflate = "1.2.0"
libflate = "1.3.0"

[dev-dependencies]
pgx-tests = { path = "../../pgx-tests" }
Expand Down
8 changes: 4 additions & 4 deletions pgx-macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pgx-macros"
version = "0.7.1"
version = "0.7.2"
authors = ["ZomboDB, LLC <[email protected]>"]
license = "MIT"
description = "Proc Macros for 'pgx'"
Expand All @@ -21,10 +21,10 @@ rustc-args = ["--cfg", "docsrs"]
no-schema-generation = ["pgx-sql-entity-graph/no-schema-generation"]

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

[dev-dependencies]
serde = { version = "1.0.152", features = ["derive"] } # for Documentation examples
4 changes: 2 additions & 2 deletions pgx-pg-config/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pgx-pg-config"
version = "0.7.1"
version = "0.7.2"
authors = ["ZomboDB, LLC <[email protected]>"]
license = "MIT"
description = "A Postgres pg_config wrapper for 'pgx'"
Expand All @@ -19,6 +19,6 @@ pathsearch = "0.2.0"
owo-colors = "3.5.0"
serde = { version = "1.0.152", features = [ "derive" ] }
serde_derive = "1.0.152"
serde_json = "1.0.91"
serde_json = "1.0.93"
toml = "0.5.11"
url = "2.3.1"
14 changes: 7 additions & 7 deletions pgx-pg-sys/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pgx-pg-sys"
version = "0.7.1"
version = "0.7.2"
authors = ["ZomboDB, LLC <[email protected]>"]
license = "MIT"
description = "Generated Rust bindings for Postgres internals, for use with 'pgx'"
Expand Down Expand Up @@ -29,19 +29,19 @@ rustdoc-args = ["--cfg", "docsrs"]

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

[build-dependencies]
bindgen = { version = "0.60.1", default-features = false, features = ["runtime"] }
pgx-pg-config= { path = "../pgx-pg-config/", version = "=0.7.1" }
proc-macro2 = "1.0.50"
pgx-pg-config= { path = "../pgx-pg-config/", version = "=0.7.2" }
proc-macro2 = "1.0.51"
quote = "1.0.23"
syn = { version = "1.0.107", features = [ "extra-traits", "full", "fold", "parsing" ] }
syn = { version = "1.0.108", features = [ "extra-traits", "full", "fold", "parsing" ] }
eyre = "0.6.8"
shlex = "1.1.0" # shell lexing, also used by many of our deps
once_cell = "1.17.0"
once_cell = "1.17.1"
159 changes: 159 additions & 0 deletions pgx-pg-sys/src/pg11.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38636,6 +38636,165 @@ extern "C" {
missing_ok: bool,
);
}
pub type TYPCATEGORY = ::std::os::raw::c_char;
pub const CoercionPathType_COERCION_PATH_NONE: CoercionPathType = 0;
pub const CoercionPathType_COERCION_PATH_FUNC: CoercionPathType = 1;
pub const CoercionPathType_COERCION_PATH_RELABELTYPE: CoercionPathType = 2;
pub const CoercionPathType_COERCION_PATH_ARRAYCOERCE: CoercionPathType = 3;
pub const CoercionPathType_COERCION_PATH_COERCEVIAIO: CoercionPathType = 4;
pub type CoercionPathType = ::std::os::raw::c_uint;
#[pgx_macros::pg_guard]
extern "C" {
pub fn IsBinaryCoercible(srctype: Oid, targettype: Oid) -> bool;
}
#[pgx_macros::pg_guard]
extern "C" {
pub fn IsPreferredType(category: TYPCATEGORY, type_: Oid) -> bool;
}
#[pgx_macros::pg_guard]
extern "C" {
pub fn TypeCategory(type_: Oid) -> TYPCATEGORY;
}
#[pgx_macros::pg_guard]
extern "C" {
pub fn coerce_to_target_type(
pstate: *mut ParseState,
expr: *mut Node,
exprtype: Oid,
targettype: Oid,
targettypmod: int32,
ccontext: CoercionContext,
cformat: CoercionForm,
location: ::std::os::raw::c_int,
) -> *mut Node;
}
#[pgx_macros::pg_guard]
extern "C" {
pub fn can_coerce_type(
nargs: ::std::os::raw::c_int,
input_typeids: *mut Oid,
target_typeids: *mut Oid,
ccontext: CoercionContext,
) -> bool;
}
#[pgx_macros::pg_guard]
extern "C" {
pub fn coerce_type(
pstate: *mut ParseState,
node: *mut Node,
inputTypeId: Oid,
targetTypeId: Oid,
targetTypeMod: int32,
ccontext: CoercionContext,
cformat: CoercionForm,
location: ::std::os::raw::c_int,
) -> *mut Node;
}
#[pgx_macros::pg_guard]
extern "C" {
pub fn coerce_to_domain(
arg: *mut Node,
baseTypeId: Oid,
baseTypeMod: int32,
typeId: Oid,
ccontext: CoercionContext,
cformat: CoercionForm,
location: ::std::os::raw::c_int,
hideInputCoercion: bool,
) -> *mut Node;
}
#[pgx_macros::pg_guard]
extern "C" {
pub fn coerce_to_boolean(
pstate: *mut ParseState,
node: *mut Node,
constructName: *const ::std::os::raw::c_char,
) -> *mut Node;
}
#[pgx_macros::pg_guard]
extern "C" {
pub fn coerce_to_specific_type(
pstate: *mut ParseState,
node: *mut Node,
targetTypeId: Oid,
constructName: *const ::std::os::raw::c_char,
) -> *mut Node;
}
#[pgx_macros::pg_guard]
extern "C" {
pub fn coerce_to_specific_type_typmod(
pstate: *mut ParseState,
node: *mut Node,
targetTypeId: Oid,
targetTypmod: int32,
constructName: *const ::std::os::raw::c_char,
) -> *mut Node;
}
#[pgx_macros::pg_guard]
extern "C" {
pub fn parser_coercion_errposition(
pstate: *mut ParseState,
coerce_location: ::std::os::raw::c_int,
input_expr: *mut Node,
) -> ::std::os::raw::c_int;
}
#[pgx_macros::pg_guard]
extern "C" {
pub fn select_common_type(
pstate: *mut ParseState,
exprs: *mut List,
context: *const ::std::os::raw::c_char,
which_expr: *mut *mut Node,
) -> Oid;
}
#[pgx_macros::pg_guard]
extern "C" {
pub fn coerce_to_common_type(
pstate: *mut ParseState,
node: *mut Node,
targetTypeId: Oid,
context: *const ::std::os::raw::c_char,
) -> *mut Node;
}
#[pgx_macros::pg_guard]
extern "C" {
pub fn check_generic_type_consistency(
actual_arg_types: *mut Oid,
declared_arg_types: *mut Oid,
nargs: ::std::os::raw::c_int,
) -> bool;
}
#[pgx_macros::pg_guard]
extern "C" {
pub fn enforce_generic_type_consistency(
actual_arg_types: *mut Oid,
declared_arg_types: *mut Oid,
nargs: ::std::os::raw::c_int,
rettype: Oid,
allow_poly: bool,
) -> Oid;
}
#[pgx_macros::pg_guard]
extern "C" {
pub fn resolve_generic_type(
declared_type: Oid,
context_actual_type: Oid,
context_declared_type: Oid,
) -> Oid;
}
#[pgx_macros::pg_guard]
extern "C" {
pub fn find_coercion_pathway(
targetTypeId: Oid,
sourceTypeId: Oid,
ccontext: CoercionContext,
funcid: *mut Oid,
) -> CoercionPathType;
}
#[pgx_macros::pg_guard]
extern "C" {
pub fn find_typmod_coercion_function(typeId: Oid, funcid: *mut Oid) -> CoercionPathType;
}
pub const BackslashQuoteType_BACKSLASH_QUOTE_OFF: BackslashQuoteType = 0;
pub const BackslashQuoteType_BACKSLASH_QUOTE_ON: BackslashQuoteType = 1;
pub const BackslashQuoteType_BACKSLASH_QUOTE_SAFE_ENCODING: BackslashQuoteType = 2;
Expand Down
Loading

0 comments on commit 809132b

Please sign in to comment.