From f7e8aa6b87697f1188d1c5c48d488efc6584c51b Mon Sep 17 00:00:00 2001 From: Craig Pastro Date: Wed, 1 Nov 2023 16:40:59 -0700 Subject: [PATCH] Update pgrx to v0.11.0 --- Cargo.lock | 52 +++++++++++++++++++++++++++++----------------------- Cargo.toml | 4 ++-- Dockerfile | 2 +- README.md | 4 ++-- 4 files changed, 34 insertions(+), 28 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 6160696..f10769d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -698,9 +698,9 @@ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55" [[package]] name = "libc" -version = "0.2.148" +version = "0.2.149" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9cdc71e17332e86d2e1d38c1f99edcb6288ee11b815fb1a4b049eaa2114d369b" +checksum = "a08173bc88b7955d1b3145aa561539096c421ac8debde8cbc3612ec635fee29b" [[package]] name = "libloading" @@ -932,9 +932,9 @@ dependencies = [ [[package]] name = "pgrx" -version = "0.10.2" +version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dde2cf81d16772f2e75c91edd2e868de1bd67a79d6c45c3d25c62b2ed3851d70" +checksum = "bd3c4b36fbe84329b86c83bfd33b9514a50606f00074f47085f99062a7dd8c9c" dependencies = [ "atomic-traits", "bitflags 2.4.0", @@ -957,9 +957,9 @@ dependencies = [ [[package]] name = "pgrx-macros" -version = "0.10.2" +version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b9c035c16a41b126f8c2b37307f2c717b5ee72ff8e7495ff502ad35471a0b38" +checksum = "9c6a41e021321a814fac1aa27bd4266208b4507709ecbc28fc99693adfbd0c41" dependencies = [ "pgrx-sql-entity-graph", "proc-macro2", @@ -969,9 +969,9 @@ dependencies = [ [[package]] name = "pgrx-pg-config" -version = "0.10.2" +version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16f9d9b6310ea9f13570d773d173bbcfe47ac844075bf6a3e207e7209786c631" +checksum = "17da1e26800e747d501b8d8bb8aeee4530a07d93a39c3fb2c4229a8feff213b2" dependencies = [ "cargo_toml", "dirs", @@ -987,9 +987,9 @@ dependencies = [ [[package]] name = "pgrx-pg-sys" -version = "0.10.2" +version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f821614646963302a8499b8ac8332cc0e2ae3f8715a0220986984443d8880f74" +checksum = "f9032b517525ec71579cc68e92905b5f5f63e892c094834202313c42f2f1a669" dependencies = [ "bindgen", "eyre", @@ -1009,9 +1009,9 @@ dependencies = [ [[package]] name = "pgrx-sql-entity-graph" -version = "0.10.2" +version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4743b5b23fd418cded0c2dbe4b1529628f7fa59b8d68426eafdde0cb51541c96" +checksum = "2e4a88203974b887bca8bfdea17ab9936411fb7e84957763dc0124df78d07907" dependencies = [ "convert_case", "eyre", @@ -1024,9 +1024,9 @@ dependencies = [ [[package]] name = "pgrx-tests" -version = "0.10.2" +version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "177bb8f6811bd65180c5a24a33666baed0ed5c08cc584c4bdb78f7fe19304363" +checksum = "c80deb4310538e6ef14f4cbb30b56eb24b6d7aae66bfd4e516f153987159e65e" dependencies = [ "clap-cargo", "eyre", @@ -1127,9 +1127,9 @@ checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" [[package]] name = "proc-macro2" -version = "1.0.67" +version = "1.0.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d433d9f1a3e8c1263d9456598b16fec66f4acc9a74dacffd35c7bb09b3a1328" +checksum = "134c189feb4956b20f6f547d2cf727d4c0fe06722b20a0eec87ed445a97f92da" dependencies = [ "unicode-ident", ] @@ -1148,7 +1148,7 @@ dependencies = [ "rand", "rand_chacha", "rand_xorshift", - "regex-syntax", + "regex-syntax 0.7.5", "rusty-fork", "tempfile", "unarray", @@ -1267,25 +1267,25 @@ dependencies = [ [[package]] name = "regex" -version = "1.9.6" +version = "1.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ebee201405406dbf528b8b672104ae6d6d63e6d118cb10e4d51abbc7b58044ff" +checksum = "380b951a9c5e80ddfd6136919eef32310721aa4aacd4889a8d39124b026ab343" dependencies = [ "aho-corasick", "memchr", "regex-automata", - "regex-syntax", + "regex-syntax 0.8.2", ] [[package]] name = "regex-automata" -version = "0.3.9" +version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "59b23e92ee4318893fa3fe3e6fb365258efbfe6ac6ab30f090cdcbb7aa37efa9" +checksum = "5f804c7828047e88b2d32e2d7fe5a105da8ee3264f01902f796c8e067dc2483f" dependencies = [ "aho-corasick", "memchr", - "regex-syntax", + "regex-syntax 0.8.2", ] [[package]] @@ -1294,6 +1294,12 @@ version = "0.7.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dbb5fb1acd8a1a18b3dd5be62d25485eb770e05afb408a9627d14d451bae12da" +[[package]] +name = "regex-syntax" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c08c74e62047bb2de4ff487b251e4a92e24f48745648451635cec7d591162d9f" + [[package]] name = "rustc-demangle" version = "0.1.23" diff --git a/Cargo.toml b/Cargo.toml index 1278631..1379b7d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,11 +21,11 @@ pg16 = ["pgrx/pg16", "pgrx-tests/pg16"] pg_test = [] [dependencies] -pgrx = "=0.10.2" +pgrx = "=0.11.0" uuid = { version = "1.5", features = ["std", "v7"] } [dev-dependencies] -pgrx-tests = "=0.10.2" +pgrx-tests = "=0.11.0" [profile.dev] panic = "unwind" diff --git a/Dockerfile b/Dockerfile index c5050ca..f755ce2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,7 +20,7 @@ RUN chown postgres:postgres -R /foo USER postgres RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path --profile minimal -RUN cargo install --locked --version 0.10.2 cargo-pgrx +RUN cargo install --locked --version 0.11.0 cargo-pgrx RUN cargo pgrx init --pg16 $(which pg_config) USER root diff --git a/README.md b/README.md index 3af8fe2..66a61a9 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ postgres://postgres:password@localhost:28801/postgres ## Installation -Requires [pgrx](https://github.com/tcdi/pgrx). If you have `pgrx` installed then +Requires [pgrx](https://github.com/pgcentralfoundation/pgrx). If you have `pgrx` installed then ``` cargo pgrx run pg16 @@ -40,7 +40,7 @@ should drop you into a psql prompt: psql (16.0) Type "help" for help. -pg_uuidv7=# create extension uuidv7; +pg_uuidv7=# create extension pg_uuidv7; CREATE EXTENSION pg_uuidv7=# select uuid_generate_v7(); uuid_generate_v7