diff --git a/Cargo.lock b/Cargo.lock index ba4ec3eda..066c24983 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -34,9 +34,9 @@ dependencies = [ [[package]] name = "aho-corasick" -version = "0.7.18" +version = "0.7.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e37cfd5e7657ada45f742d6e99ca5788580b5c529dc78faf11ece6dc702656f" +checksum = "b4f55bd91a0978cbfd91c457a164bab8b4001c833b7f323132c0a4e1922dd44e" dependencies = [ "memchr", ] @@ -61,9 +61,9 @@ dependencies = [ [[package]] name = "async-trait" -version = "0.1.53" +version = "0.1.57" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed6aa3524a2dfcf9fe180c51eae2b58738348d819517ceadf95789c51fff7600" +checksum = "76464446b8bc32758d7e88ee1a804d9914cd9b1cb264c029899680b0be29826f" dependencies = [ "proc-macro2", "quote", @@ -108,16 +108,16 @@ checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" [[package]] name = "backtrace" -version = "0.3.65" +version = "0.3.66" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "11a17d453482a265fd5f8479f2a3f405566e6ca627837aaddb85af8b1ab8ef61" +checksum = "cab84319d616cfb654d03394f38ab7e6f0919e181b1b57e1fd15e7fb4077d9a7" dependencies = [ "addr2line", "cc", "cfg-if", "libc", "miniz_oxide", - "object", + "object 0.29.0", "rustc-demangle", ] @@ -191,9 +191,9 @@ dependencies = [ [[package]] name = "bit-set" -version = "0.5.2" +version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e11e16035ea35e4e5997b393eacbf6f63983188f7a2ad25bfb13465f5ad59de" +checksum = "0700ddab506f33b20a03b13996eccd309a48e5ff77d0d95926aa0210fb4e95f1" dependencies = [ "bit-vec", ] @@ -236,9 +236,9 @@ dependencies = [ [[package]] name = "block-buffer" -version = "0.10.2" +version = "0.10.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0bf7fe51849ea569fd452f37822f606a5cabb684dc918707a0193fd4664ff324" +checksum = "69cce20737498f97b993470a6e536b8523f0af7892a4f928cceb1ac5e52ebe7e" dependencies = [ "generic-array", ] @@ -254,9 +254,9 @@ dependencies = [ [[package]] name = "bumpalo" -version = "3.10.0" +version = "3.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "37ccbd214614c6783386c1af30caf03192f17891059cecc394b4fb119e363de3" +checksum = "c1ad822118d20d2c234f427000d5acc36eabe1e29a348c89b63dd60b13f28e5d" [[package]] name = "bytea" @@ -275,22 +275,22 @@ checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610" [[package]] name = "bytes" -version = "1.1.0" +version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4872d67bab6358e59559027aa3b9157c53d9358c51423c17554809a8858e0f8" +checksum = "ec8a7b6a70fde80372154c65702f00a0f56f3e1c36abbc6c440484be248856db" [[package]] name = "camino" -version = "1.0.9" +version = "1.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "869119e97797867fd90f5e22af7d0bd274bd4635ebb9eb68c04f3f513ae6c412" +checksum = "88ad0e1e3e88dd237a156ab9f571021b8a158caa0ae44b1968a241efb5144c1e" dependencies = [ "serde", ] [[package]] name = "cargo-pgx" -version = "0.5.0-beta.0" +version = "0.5.0-beta.1" dependencies = [ "atty", "cargo_metadata", @@ -303,7 +303,7 @@ dependencies = [ "fork", "libloading", "num_cpus", - "object", + "object 0.28.4", "once_cell", "owo-colors", "pgx-pg-config", @@ -313,7 +313,7 @@ dependencies = [ "quote", "rayon", "regex", - "semver 1.0.9", + "semver 1.0.14", "serde", "serde-xml-rs", "serde_derive", @@ -343,16 +343,16 @@ checksum = "4acbb09d9ee8e23699b9634375c72795d095bf268439da88562cf9b501f181fa" dependencies = [ "camino", "cargo-platform", - "semver 1.0.9", + "semver 1.0.14", "serde", "serde_json", ] [[package]] name = "cargo_toml" -version = "0.11.5" +version = "0.11.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5809dd3e6444651fd1cdd3dbec71eca438c439a0fcc8081674a14da0afe50185" +checksum = "e72c3ff59e3b7d24630206bb63a73af65da4ed5df1f76ee84dfafb9fee2ba60e" dependencies = [ "serde", "serde_derive", @@ -388,9 +388,9 @@ checksum = "fff857943da45f546682664a79488be82e69e43c1a7a2307679ab9afb3a66d2e" [[package]] name = "clang-sys" -version = "1.3.3" +version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a050e2153c5be08febd6734e29298e844fdb0fa21aeddd63b4eb7baa106c69b" +checksum = "fa2e27ae6ab525c3d369ded447057bca5438d86dc3a68f6faafb8269ba82ebf3" dependencies = [ "glob", "libc", @@ -399,16 +399,16 @@ dependencies = [ [[package]] name = "clap" -version = "3.1.18" +version = "3.2.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2dbdf4bdacb33466e854ce889eee8dfd5729abf7ccd7664d0a2d60cd384440b" +checksum = "86447ad904c7fb335a790c9d7fe3d0d971dc523b8ccd1561a520de9a85302750" dependencies = [ "atty", "bitflags", "clap_derive", "clap_lex", "indexmap", - "lazy_static", + "once_cell", "strsim", "termcolor", "textwrap", @@ -427,9 +427,9 @@ dependencies = [ [[package]] name = "clap_derive" -version = "3.1.18" +version = "3.2.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25320346e922cffe59c0bbc5410c8d8784509efb321488971081313cb1e1a33c" +checksum = "ea0c8bce528c4be4da13ea6fead8965e95b6073585a2f05204bd8f4119f82a65" dependencies = [ "heck", "proc-macro-error", @@ -440,18 +440,18 @@ dependencies = [ [[package]] name = "clap_lex" -version = "0.2.0" +version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a37c35f1112dad5e6e0b1adaff798507497a18fceeb30cceb3bae7d1427b9213" +checksum = "2850f2f5a82cbf437dd5af4d49848fbdfc27c157c3d010345776f952765261c5" dependencies = [ "os_str_bytes", ] [[package]] name = "color-eyre" -version = "0.6.1" +version = "0.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ebf286c900a6d5867aeff75cfee3192857bb7f24b547d4f0df2ed6baa812c90" +checksum = "5a667583cca8c4f8436db8de46ea8233c42a7d9ae424a82d338f2e4675229204" dependencies = [ "backtrace", "color-spantrace", @@ -507,9 +507,9 @@ checksum = "5827cebf4670468b8772dd191856768aedcb1b0278a04f989f7766351917b9dc" [[package]] name = "cortex-m" -version = "0.7.5" +version = "0.7.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd20d4ac4aa86f4f75f239d59e542ef67de87cce2c282818dc6e84155d3ea126" +checksum = "70858629a458fdfd39f9675c4dc309411f2a3f83bede76988d81bf1a0ecee9e0" dependencies = [ "bare-metal 0.2.5", "bitfield", @@ -549,9 +549,9 @@ dependencies = [ [[package]] name = "crossbeam-channel" -version = "0.5.4" +version = "0.5.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5aaa7bd5fb665c6864b5f963dd9097905c54125909c7aa94c9e18507cdbe6c53" +checksum = "c2dd04ddaf88237dc3b8d8f9a3c1004b506b54b3313403944054d23c0870c521" dependencies = [ "cfg-if", "crossbeam-utils", @@ -559,9 +559,9 @@ dependencies = [ [[package]] name = "crossbeam-deque" -version = "0.8.1" +version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6455c0ca19f0d2fbf751b908d5c55c1f5cbc65e03c4225427254b46890bdde1e" +checksum = "715e8152b692bba2d374b53d4875445368fdf21a94751410af607a5ac677d1fc" dependencies = [ "cfg-if", "crossbeam-epoch", @@ -570,33 +570,33 @@ dependencies = [ [[package]] name = "crossbeam-epoch" -version = "0.9.8" +version = "0.9.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1145cf131a2c6ba0615079ab6a638f7e1973ac9c2634fcbeaaad6114246efe8c" +checksum = "045ebe27666471bb549370b4b0b3e51b07f56325befa4284db65fc89c02511b1" dependencies = [ "autocfg", "cfg-if", "crossbeam-utils", - "lazy_static", "memoffset", + "once_cell", "scopeguard", ] [[package]] name = "crossbeam-utils" -version = "0.8.8" +version = "0.8.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0bf124c720b7686e3c2663cf54062ab0f68a88af2fb6a030e87e30bf721fcb38" +checksum = "51887d4adc7b564537b15adcfb307936f8075dfcd5f00dde9a9f1d29383682bc" dependencies = [ "cfg-if", - "lazy_static", + "once_cell", ] [[package]] name = "crypto-common" -version = "0.1.3" +version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57952ca27b5e3606ff4dd79b0020231aaf9d6aa76dc05fd30137538c50bd3ce8" +checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3" dependencies = [ "generic-array", "typenum", @@ -604,9 +604,9 @@ dependencies = [ [[package]] name = "cstr_core" -version = "0.2.5" +version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "644828c273c063ab0d39486ba42a5d1f3a499d35529c759e763a9c6cb8a0fb08" +checksum = "dd98742e4fdca832d40cab219dc2e3048de17d873248f83f17df47c1bea70956" dependencies = [ "cty", "memchr", @@ -639,9 +639,9 @@ dependencies = [ [[package]] name = "digest" -version = "0.10.3" +version = "0.10.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2fb860ca6fafa5552fb6d0e816a69c8e49f0908bf524e30a90d97c85892d506" +checksum = "adfbc57365a37acbd2ebf2b64d7e69bb766e2fea813521ed536f5d0520dcf86c" dependencies = [ "block-buffer", "crypto-common", @@ -676,9 +676,9 @@ checksum = "fea41bba32d969b513997752735605054bc0dfa92b4c56bf1189f2e174be7a10" [[package]] name = "either" -version = "1.6.1" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457" +checksum = "90e5c1c8368803113bf0c9584fc495a58b86dc8a29edbf8fe877d21d9507e797" [[package]] name = "embedded-hal" @@ -736,18 +736,18 @@ dependencies = [ [[package]] name = "fastrand" -version = "1.7.0" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3fcf0cee53519c866c09b5de1f6c56ff9d647101f81c1964fa632e148896cdf" +checksum = "a7a407cfaa3385c4ae6b23e84623d48c2798d06e3e6a1878f7f59f17b3f86499" dependencies = [ "instant", ] [[package]] name = "fixedbitset" -version = "0.4.1" +version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "279fb028e20b3c4c320317955b77c5e0c9701f05a1d309905d6fc702cdc5053e" +checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80" [[package]] name = "flate2" @@ -782,20 +782,19 @@ checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" [[package]] name = "fork" -version = "0.1.19" +version = "0.1.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57b4f1a740392e495821244cc1658d86496ac6e67a47da67e243ed401b937717" +checksum = "9788ce090af4bf8d6e8f43d3f7d12305c787456387bd2d88856fcda3aa1f0dca" dependencies = [ "libc", ] [[package]] name = "form_urlencoded" -version = "1.0.1" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5fc25a87fa4fd2094bffb06925852034d90a17f0d1e05197d4956d3555752191" +checksum = "a9c384f161156f5260c24a097c56119f9be8c798586aecc13afbcbe7b7e26bf8" dependencies = [ - "matches", "percent-encoding", ] @@ -805,26 +804,11 @@ version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e6d5a32815ae3f33302d95fdcb2ce17862f8c65363dcfd29360480ba1001fc9c" -[[package]] -name = "futures" -version = "0.3.21" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f73fe65f54d1e12b726f517d3e2135ca3125a437b6d998caf1962961f7172d9e" -dependencies = [ - "futures-channel", - "futures-core", - "futures-executor", - "futures-io", - "futures-sink", - "futures-task", - "futures-util", -] - [[package]] name = "futures-channel" -version = "0.3.21" +version = "0.3.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3083ce4b914124575708913bca19bfe887522d6e2e6d0952943f5eac4a74010" +checksum = "30bdd20c28fadd505d0fd6712cdfcb0d4b5648baf45faef7f852afb2399bb050" dependencies = [ "futures-core", "futures-sink", @@ -832,32 +816,15 @@ dependencies = [ [[package]] name = "futures-core" -version = "0.3.21" +version = "0.3.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c09fd04b7e4073ac7156a9539b57a484a8ea920f79c7c675d05d289ab6110d3" - -[[package]] -name = "futures-executor" -version = "0.3.21" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9420b90cfa29e327d0429f19be13e7ddb68fa1cccb09d65e5706b8c7a749b8a6" -dependencies = [ - "futures-core", - "futures-task", - "futures-util", -] - -[[package]] -name = "futures-io" -version = "0.3.21" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc4045962a5a5e935ee2fdedaa4e08284547402885ab326734432bed5d12966b" +checksum = "4e5aa3de05362c3fb88de6531e6296e85cde7739cccad4b9dfeeb7f6ebce56bf" [[package]] name = "futures-macro" -version = "0.3.21" +version = "0.3.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "33c1e13800337f4d4d7a316bf45a567dbcb6ffe087f16424852d97e97a91f512" +checksum = "42cd15d1c7456c04dbdf7e88bcd69760d74f3a798d6444e16974b505b0e62f17" dependencies = [ "proc-macro2", "quote", @@ -866,29 +833,26 @@ dependencies = [ [[package]] name = "futures-sink" -version = "0.3.21" +version = "0.3.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21163e139fa306126e6eedaf49ecdb4588f939600f0b1e770f4205ee4b7fa868" +checksum = "21b20ba5a92e727ba30e72834706623d94ac93a725410b6a6b6fbc1b07f7ba56" [[package]] name = "futures-task" -version = "0.3.21" +version = "0.3.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57c66a976bf5909d801bbef33416c41372779507e7a6b3a5e25e4749c58f776a" +checksum = "a6508c467c73851293f390476d4491cf4d227dbabcd4170f3bb6044959b294f1" [[package]] name = "futures-util" -version = "0.3.21" +version = "0.3.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d8b7abd5d659d9b90c8cba917f6ec750a74e2dc23902ef9cd4cc8c8b22e6036a" +checksum = "44fb6cb1be61cc1d2e43b262516aafcf63b241cffdb1d3fa115f91d9c7b09c90" dependencies = [ - "futures-channel", "futures-core", - "futures-io", "futures-macro", "futures-sink", "futures-task", - "memchr", "pin-project-lite", "pin-utils", "slab", @@ -896,9 +860,9 @@ dependencies = [ [[package]] name = "generic-array" -version = "0.14.5" +version = "0.14.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd48d33ec7f05fbfa152300fdad764757cbded343c1aa1cff2fbaf4134851803" +checksum = "bff49e947297f3312447abdca79f45f4738097cc82b06e72054d2223f601f1b9" dependencies = [ "typenum", "version_check", @@ -917,9 +881,9 @@ dependencies = [ [[package]] name = "gimli" -version = "0.26.1" +version = "0.26.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78cc372d058dcf6d5ecd98510e7fbc9e5aec4d21de70f65fea8fecebcd881bd4" +checksum = "22030e2c5a68ec659fde1e949a745124b48e6fa8b045b7ed5bd1fe4ccc5c4e5d" [[package]] name = "glob" @@ -944,20 +908,20 @@ dependencies = [ [[package]] name = "hashbrown" -version = "0.11.2" +version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e" +checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" [[package]] name = "heapless" -version = "0.7.13" +version = "0.7.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a08e755adbc0ad283725b29f4a4883deee15336f372d5f61fae59efec40f983" +checksum = "db04bc24a18b9ea980628ecf00e6c0264f3c1426dac36c00cb49b6fbad8b0743" dependencies = [ "atomic-polyfill", "hash32", "rustc_version 0.4.0", - "spin 0.9.3", + "spin 0.9.4", "stable_deref_trait", ] @@ -987,11 +951,10 @@ dependencies = [ [[package]] name = "idna" -version = "0.2.3" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "418a0a6fab821475f634efe3ccc45c013f742efe03d853e8d3355d5cb850ecf8" +checksum = "e14ddfc70884202db2244c223200c204c2bda1bc6e0998d11b5e024d657209e6" dependencies = [ - "matches", "unicode-bidi", "unicode-normalization", ] @@ -1004,9 +967,9 @@ checksum = "ce23b50ad8242c51a442f3ff322d56b02f08852c77e4c0b4d3fd684abc89c683" [[package]] name = "indexmap" -version = "1.8.2" +version = "1.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6012d540c5baa3589337a98ce73408de9b5a25ec9fc2c6fd6be8f0d39e0ca5a" +checksum = "10a35a97730320ffe8e2d410b5d3b69279b98d2c14bdb8b70ea89ecf7888d41e" dependencies = [ "autocfg", "hashbrown", @@ -1029,15 +992,15 @@ checksum = "616cde7c720bb2bb5824a224687d8f77bfd38922027f01d825cd7453be5099fb" [[package]] name = "itoa" -version = "1.0.2" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "112c678d4050afce233f4f2852bb2eb519230b3cf12f33585275537d7e41578d" +checksum = "6c8af84674fe1f223a982c933a0ee1086ac4d4052aa0fb8060c12c6ad838e754" [[package]] name = "js-sys" -version = "0.3.58" +version = "0.3.60" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3fac17f7123a73ca62df411b1bf727ccc805daa070338fda671c86dac1bdc27" +checksum = "49409df3e3bf0856b916e2ceaca09ee28e6871cf7d9ce97a692cacfdb2a25a47" dependencies = [ "wasm-bindgen", ] @@ -1056,9 +1019,9 @@ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55" [[package]] name = "libc" -version = "0.2.126" +version = "0.2.133" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "349d5a591cd28b49e1d1037471617a32ddcda5731b99419008085f72d5a53836" +checksum = "c0f80d65747a3e43d1596c7c5492d95d5edddaabd45a7fcdb02b95f644164966" [[package]] name = "libflate" @@ -1101,15 +1064,15 @@ dependencies = [ [[package]] name = "linked-hash-map" -version = "0.5.4" +version = "0.5.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7fb9b38af92608140b86b693604b9ffcc5824240a484d1ecd4795bacb2fe88f3" +checksum = "0717cef1bc8b636c6e1c1bbdefc09e6322da8a9321966e8928ef80d20f7f770f" [[package]] name = "lock_api" -version = "0.4.7" +version = "0.4.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "327fa5b6a6940e4699ec49a9beae1ea4845c6bab9314e4f84ac68742139d8c53" +checksum = "435011366fe56583b16cf956f9df0095b405b82d76425bc8981c0e22e60ec4df" dependencies = [ "autocfg", "scopeguard", @@ -1139,17 +1102,11 @@ dependencies = [ "regex-automata", ] -[[package]] -name = "matches" -version = "0.1.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a3e378b66a060d48947b590737b30a1be76706c8dd7b8ba0f2fe3989c68a853f" - [[package]] name = "md-5" -version = "0.10.1" +version = "0.10.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "658646b21e0b72f7866c7038ab086d3d5e1cd6271f060fd37defb241949d0582" +checksum = "6365506850d44bff6e2fbcb5176cf63650e48bd45ef2fe2665ae1570e0f4b9ca" dependencies = [ "digest", ] @@ -1177,18 +1134,18 @@ checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" [[package]] name = "miniz_oxide" -version = "0.5.3" +version = "0.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f5c75688da582b8ffc1f1799e9db273f32133c49e048f614d22ec3256773ccc" +checksum = "96590ba8f175222643a85693f33d26e9c8a015f599c216509b1a6894af675d34" dependencies = [ "adler", ] [[package]] name = "mio" -version = "0.8.3" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "713d550d9b44d89174e066b7a6217ae06234c10cb47819a88290d2b353c31799" +checksum = "57ee1c23c7c63b0c9250c339ffdc69255f110b298b901b9f6c82547b7b87caaf" dependencies = [ "libc", "log", @@ -1277,17 +1234,26 @@ dependencies = [ "memchr", ] +[[package]] +name = "object" +version = "0.29.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "21158b2c33aa6d4561f1c0a6ea283ca92bc54802a93b263e910746d679a7eb53" +dependencies = [ + "memchr", +] + [[package]] name = "once_cell" -version = "1.12.0" +version = "1.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7709cef83f0c1f58f666e746a08b21e0085f7440fa6a29cc194d68aac97a4225" +checksum = "e82dad04139b71a90c080c8463fe0dc7902db5192d939bd0950f074d014339e1" [[package]] name = "openssl" -version = "0.10.40" +version = "0.10.42" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb81a6430ac911acb25fe5ac8f1d2af1b4ea8a4fdfda0f1ee4292af2e2d8eb0e" +checksum = "12fc0523e3bd51a692c8850d075d74dc062ccf251c0110668cbd921917118a13" dependencies = [ "bitflags", "cfg-if", @@ -1317,9 +1283,9 @@ checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" [[package]] name = "openssl-sys" -version = "0.9.73" +version = "0.9.76" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d5fd19fb3e0a8191c1e34935718976a3e70c112ab9a24af6d7cadccd9d90bc0" +checksum = "5230151e44c0f05157effb743e8d517472843121cf9243e8b81393edb5acd9ce" dependencies = [ "autocfg", "cc", @@ -1340,15 +1306,15 @@ dependencies = [ [[package]] name = "os_str_bytes" -version = "6.1.0" +version = "6.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21326818e99cfe6ce1e524c2a805c189a99b5ae555a35d19f9a284b427d86afa" +checksum = "9ff7415e9ae3fff1225851df9e0d9e4e5479f947619774677a63572e55e80eff" [[package]] name = "owo-colors" -version = "3.4.0" +version = "3.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "decf7381921fea4dcb2549c5667eda59b3ec297ab7e2b5fc33eac69d2e7da87b" +checksum = "c1b04fb49957986fdce4d6ee7a65027d55d4b6d2265e5848bbb507b58ccfdb6f" dependencies = [ "supports-color", ] @@ -1384,16 +1350,17 @@ checksum = "19b17cddbe7ec3f8bc800887bab5e717348c95ea2ca0b1bf0837fb964dc67099" [[package]] name = "percent-encoding" -version = "2.1.0" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e" +checksum = "478c572c3d73181ff3c2539045f6eb99e5491218eae919370993b890cdbdd98e" [[package]] name = "pest" -version = "2.1.3" +version = "2.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "10f4872ae94d7b90ae48754df22fd42ad52ce740b8f370b03da4835417403e53" +checksum = "cb779fcf4bb850fbbb0edc96ff6cf34fd90c4b1a112ce042653280d9a7364048" dependencies = [ + "thiserror", "ucd-trie", ] @@ -1409,7 +1376,7 @@ dependencies = [ [[package]] name = "pgx" -version = "0.5.0-beta.0" +version = "0.5.0-beta.1" dependencies = [ "atomic-traits", "bitflags", @@ -1437,7 +1404,7 @@ dependencies = [ [[package]] name = "pgx-macros" -version = "0.5.0-beta.0" +version = "0.5.0-beta.1" dependencies = [ "pgx-utils", "proc-macro2", @@ -1449,7 +1416,7 @@ dependencies = [ [[package]] name = "pgx-pg-config" -version = "0.5.0-beta.0" +version = "0.5.0-beta.1" dependencies = [ "dirs", "eyre", @@ -1464,7 +1431,7 @@ dependencies = [ [[package]] name = "pgx-pg-sys" -version = "0.5.0-beta.0" +version = "0.5.0-beta.1" dependencies = [ "bindgen", "build-deps", @@ -1487,7 +1454,7 @@ dependencies = [ [[package]] name = "pgx-tests" -version = "0.5.0-beta.0" +version = "0.5.0-beta.1" dependencies = [ "eyre", "libc", @@ -1508,7 +1475,7 @@ dependencies = [ [[package]] name = "pgx-utils" -version = "0.5.0-beta.0" +version = "0.5.0-beta.1" dependencies = [ "atty", "convert_case", @@ -1533,18 +1500,18 @@ dependencies = [ [[package]] name = "phf" -version = "0.10.1" +version = "0.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fabbf1ead8a5bcbc20f5f8b939ee3f5b0f6f281b6ad3468b84656b658b455259" +checksum = "928c6535de93548188ef63bb7c4036bd415cd8f36ad25af44b9789b2ee72a48c" dependencies = [ "phf_shared", ] [[package]] name = "phf_shared" -version = "0.10.0" +version = "0.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6796ad771acdc0123d2a88dc428b5e38ef24456743ddb1744ed628f9815c096" +checksum = "e1fb5f6f826b772a8d4c0394209441e7d37cbbb967ae9c7e0e8134365c9ee676" dependencies = [ "siphasher", ] @@ -1583,13 +1550,13 @@ dependencies = [ [[package]] name = "postgres" -version = "0.19.3" +version = "0.19.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8bbcd5f6deb39585a0d9f4ef34c4a41c25b7ad26d23c75d837d78c8e7adc85f" +checksum = "960c214283ef8f0027974c03e9014517ced5db12f021a9abb66185a5751fab0a" dependencies = [ "bytes", "fallible-iterator", - "futures", + "futures-util", "log", "tokio", "tokio-postgres", @@ -1615,9 +1582,9 @@ dependencies = [ [[package]] name = "postgres-types" -version = "0.2.3" +version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ebd6e8b7189a73169290e89bd24c771071f1012d8fe6f738f5226531f0b03d89" +checksum = "73d946ec7d256b04dfadc4e6a3292324e6f417124750fc5c0950f981b703a0f1" dependencies = [ "bytes", "fallible-iterator", @@ -1632,9 +1599,9 @@ checksum = "eb9f9e6e233e5c4a35559a617bf40a4ec447db2e84c20b55a6f83167b7e57872" [[package]] name = "prettyplease" -version = "0.1.18" +version = "0.1.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "697ae720ee02011f439e0701db107ffe2916d83f718342d65d7f8bf7b8a5fee9" +checksum = "a49e86d2c26a24059894a3afa13fd17d063419b05dfb83f06d9c3566060c3f5a" dependencies = [ "proc-macro2", "syn", @@ -1666,18 +1633,18 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.39" +version = "1.0.44" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c54b25569025b7fc9651de43004ae593a75ad88543b17178aa5e1b9c4f15f56f" +checksum = "7bd7356a8122b6c4a24a82b278680c73357984ca2fc79a0f9fa6dea7dced7c58" dependencies = [ "unicode-ident", ] [[package]] name = "quote" -version = "1.0.18" +version = "1.0.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1feb54ed693b93a84e14094943b84b7c4eae204c512b7ccb95ab0c66d278ad1" +checksum = "bbe448f377a7d6961e30f5955f9b8d106c3f5e449d493ee1b125c1d43c2b5179" dependencies = [ "proc-macro2", ] @@ -1711,9 +1678,9 @@ dependencies = [ [[package]] name = "rand_core" -version = "0.6.3" +version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d34f1408f55294453790c48b2f1ebbb1c5b4b7563eb1f418bcfcfdbb06ebb4e7" +checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" dependencies = [ "getrandom", ] @@ -1744,9 +1711,9 @@ dependencies = [ [[package]] name = "redox_syscall" -version = "0.2.13" +version = "0.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62f25bc4c7e55e0b0b7a1d43fb893f4fa1361d0abe38b9ce4f323c2adfe6ef42" +checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a" dependencies = [ "bitflags", ] @@ -1764,9 +1731,9 @@ dependencies = [ [[package]] name = "regex" -version = "1.5.6" +version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d83f127d94bdbcda4c8cc2e50f6f84f4b611f69c902699ca385a39c3a75f9ff1" +checksum = "4c4eb3267174b8c6c2f654116623910a0fef09c4753f8dd83db29c48a0df988b" dependencies = [ "aho-corasick", "memchr", @@ -1784,9 +1751,9 @@ dependencies = [ [[package]] name = "regex-syntax" -version = "0.6.26" +version = "0.6.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49b3de9ec5dc0a3417da371aab17d729997c15010e7fd24ff707773a33bddb64" +checksum = "a3f87b73ce11b1619a3c6332f45341e0047173771e8b8b73f87bfeefb7b56244" [[package]] name = "remove_dir_all" @@ -1875,7 +1842,7 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366" dependencies = [ - "semver 1.0.9", + "semver 1.0.14", ] [[package]] @@ -1892,15 +1859,15 @@ dependencies = [ [[package]] name = "rustversion" -version = "1.0.6" +version = "1.0.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2cc38e8fa666e2de3c4aba7edeb5ffc5246c1c2ed0e3d17e560aeeba736b23f" +checksum = "97477e48b4cf8603ad5f7aaf897467cf42ab4218a38ef76fb14c2d6773a6d6a8" [[package]] name = "ryu" -version = "1.0.10" +version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3f6f92acf49d1b98f7a81226834412ada05458b7364277387724a237f062695" +checksum = "4501abdff3ae82a1c1b477a17252eb69cee9e66eb915c1abaa4f44d873df9f09" [[package]] name = "safemem" @@ -1960,9 +1927,9 @@ checksum = "1c107b6f4780854c8b126e228ea8869f4d7b71260f962fefb57b996b8959ba6b" [[package]] name = "security-framework" -version = "2.6.1" +version = "2.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2dc14f172faf8a0194a3aded622712b0de276821addc574fa54fc0a1167e10dc" +checksum = "2bc1bb97804af6631813c55739f771071e0f2ed33ee20b68c86ec505d906356c" dependencies = [ "bitflags", "core-foundation", @@ -2001,9 +1968,9 @@ dependencies = [ [[package]] name = "semver" -version = "1.0.9" +version = "1.0.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8cb243bdfdb5936c8dc3c45762a19d12ab4550cdc753bc247637d4ec35a040fd" +checksum = "e25dfac463d778e353db5be2449d1cce89bd6fd23c9f1ea21310ce6e5a1b29c4" dependencies = [ "serde", ] @@ -2025,15 +1992,15 @@ dependencies = [ [[package]] name = "seq-macro" -version = "0.3.0" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "70d9841243dbc9928f5fed7946d2862292eebd823d96e13e556924d3db0120d2" +checksum = "0772c5c30e1a0d91f6834f8e545c69281c099dfa9a3ac58d96a9fd629c8d4898" [[package]] name = "serde" -version = "1.0.137" +version = "1.0.145" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61ea8d54c77f8315140a05f4c7237403bf38b72704d031543aa1d16abbf517d1" +checksum = "728eb6351430bccb993660dfffc5a72f91ccc1295abaa8ce19b27ebe4f75568b" dependencies = [ "serde_derive", ] @@ -2062,9 +2029,9 @@ dependencies = [ [[package]] name = "serde_derive" -version = "1.0.137" +version = "1.0.145" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f26faba0c3959972377d3b2d306ee9f71faee9714294e41bb777f83f88578be" +checksum = "81fa1584d3d1bcacd84c277a0dfe21f5b0f6accf4a23d04d4c6d61f1af522b4c" dependencies = [ "proc-macro2", "quote", @@ -2073,9 +2040,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.81" +version = "1.0.85" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b7ce2b32a1aed03c558dc61a5cd328f15aff2dbc17daad8fb8af04d2100e15c" +checksum = "e55a28e3aaef9d5ce0506d0a14dbba8054ddc7e499ef522dd8b26859ec9d4a44" dependencies = [ "itoa", "ryu", @@ -2084,9 +2051,9 @@ dependencies = [ [[package]] name = "sha2" -version = "0.10.2" +version = "0.10.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "55deaec60f81eefe3cce0dc50bda92d6d8e88f2a27df7c5033b42afeb1ed2676" +checksum = "82e6b795fe2e3b1e845bafcb27aa35405c4d47cdfc92af5fc8d3002f76cebdc0" dependencies = [ "cfg-if", "cpufeatures", @@ -2132,21 +2099,24 @@ checksum = "7bd3e3206899af3f8b12af284fafc038cc1dc2b41d1b89dd17297221c5d225de" [[package]] name = "slab" -version = "0.4.6" +version = "0.4.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb703cfe953bccee95685111adeedb76fabe4e97549a58d16f03ea7b9367bb32" +checksum = "4614a76b2a8be0058caa9dbbaf66d988527d86d003c11a94fbd335d7661edcef" +dependencies = [ + "autocfg", +] [[package]] name = "smallvec" -version = "1.8.0" +version = "1.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2dd574626839106c320a323308629dcb1acfc96e32a8cba364ddc61ac23ee83" +checksum = "2fd0db749597d91ff862fd1d55ea87f7855a744a8425a64695b6fca237d1dad1" [[package]] name = "socket2" -version = "0.4.4" +version = "0.4.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "66d72b759436ae32898a2af0a14218dbf55efde3feeb170eb623637db85ee1e0" +checksum = "02e2d2db9033d13a1567121ddd7a095ee144db4e1ca1b1bda3419bc0da294ebd" dependencies = [ "libc", "winapi", @@ -2168,18 +2138,18 @@ checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" [[package]] name = "spin" -version = "0.9.3" +version = "0.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c530c2b0d0bf8b69304b39fe2001993e267461948b890cd037d8ad4293fa1a0d" +checksum = "7f6002a767bff9e83f8eeecf883ecb8011875a21ae8da43bffb817a57e78cc09" dependencies = [ "lock_api", ] [[package]] name = "sptr" -version = "0.3.1" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e0d4365121b91e8522958da77ce29c004333daeaf0711225c4727c8c5f49941" +checksum = "3b9b39299b249ad65f3b7e96443bad61c02ca5cd3589f46cb6d610a0fd6c0d6a" [[package]] name = "srf" @@ -2238,9 +2208,9 @@ dependencies = [ [[package]] name = "syn" -version = "1.0.95" +version = "1.0.101" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fbaf6116ab8924f39d52792136fb74fd60a80194cf1b1c6ffa6453eef1c3f942" +checksum = "e90cde112c4b9690b8cbe810cba9ddd8bc1d7472e2cae317b69e9438c1cba7d2" dependencies = [ "proc-macro2", "quote", @@ -2301,24 +2271,24 @@ dependencies = [ [[package]] name = "textwrap" -version = "0.15.0" +version = "0.15.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1141d4d61095b28419e22cb0bbf02755f5e54e0526f97f1e3d1d160e60885fb" +checksum = "949517c0cf1bf4ee812e2e07e08ab448e3ae0d23472aee8a06c985f0c8815b16" [[package]] name = "thiserror" -version = "1.0.31" +version = "1.0.37" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd829fe32373d27f76265620b5309d0340cb8550f523c1dda251d6298069069a" +checksum = "10deb33631e3c9018b9baf9dcbbc4f737320d2b576bac10f6aefa048fa407e3e" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.31" +version = "1.0.37" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0396bc89e626244658bef819e22d0cc459e795a5ebe878e6ec336d1674a8d79a" +checksum = "982d17546b47146b28f7c22e3d08465f6b8903d0ea13c1660d9d84a6e7adcdbb" dependencies = [ "proc-macro2", "quote", @@ -2336,9 +2306,9 @@ dependencies = [ [[package]] name = "time" -version = "0.3.9" +version = "0.3.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2702e08a7a860f005826c6815dcac101b19b5eb330c27fe4a5928fec1d20ddd" +checksum = "3c3f9a28b618c3a6b9251b6908e9c99e04b9e5c02e6581ccbb67d59c34ef7f9b" dependencies = [ "itoa", "libc", @@ -2369,15 +2339,15 @@ checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c" [[package]] name = "tokio" -version = "1.18.2" +version = "1.21.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4903bf0427cf68dddd5aa6a93220756f8be0c34fcfa9f5e6191e103e15a31395" +checksum = "a9e03c497dc955702ba729190dc4aac6f2a0ce97f913e5b1b5912fc5039d9099" dependencies = [ + "autocfg", "bytes", "libc", "memchr", "mio", - "once_cell", "pin-project-lite", "socket2", "winapi", @@ -2385,15 +2355,16 @@ dependencies = [ [[package]] name = "tokio-postgres" -version = "0.7.6" +version = "0.7.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "19c88a47a23c5d2dc9ecd28fb38fba5fc7e5ddc1fe64488ec145076b0c71c8ae" +checksum = "29a12c1b3e0704ae7dfc25562629798b29c72e6b1d0a681b6f29ab4ae5e7f7bf" dependencies = [ "async-trait", "byteorder", "bytes", "fallible-iterator", - "futures", + "futures-channel", + "futures-util", "log", "parking_lot", "percent-encoding", @@ -2408,9 +2379,9 @@ dependencies = [ [[package]] name = "tokio-util" -version = "0.7.2" +version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f988a1a1adc2fb21f9c12aa96441da33a1728193ae0b95d2be22dbd17fcb4e5c" +checksum = "0bb2e075f03b3d66d8d8785356224ba688d2906a371015e225beeb65ca92c740" dependencies = [ "bytes", "futures-core", @@ -2431,9 +2402,9 @@ dependencies = [ [[package]] name = "tracing" -version = "0.1.34" +version = "0.1.36" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d0ecdcb44a79f0fe9844f0c4f33a342cbcbb5117de8001e6ba0dc2351327d09" +checksum = "2fce9567bd60a67d08a16488756721ba392f24f29006402881e43b19aac64307" dependencies = [ "cfg-if", "pin-project-lite", @@ -2443,9 +2414,9 @@ dependencies = [ [[package]] name = "tracing-attributes" -version = "0.1.21" +version = "0.1.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc6b8ad3567499f98a1db7a752b07a7c8c7c7c34c332ec00effb2b0027974b7c" +checksum = "11c75893af559bc8e10716548bdef5cb2b983f8e637db9d0e15126b61b484ee2" dependencies = [ "proc-macro2", "quote", @@ -2454,11 +2425,11 @@ dependencies = [ [[package]] name = "tracing-core" -version = "0.1.26" +version = "0.1.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f54c8ca710e81886d498c2fd3331b56c93aa248d49de2222ad2742247c60072f" +checksum = "5aeea4303076558a00714b823f9ad67d58a3bbda1df83d8827d21193156e22f7" dependencies = [ - "lazy_static", + "once_cell", "valuable", ] @@ -2485,13 +2456,13 @@ dependencies = [ [[package]] name = "tracing-subscriber" -version = "0.3.11" +version = "0.3.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4bc28f93baff38037f64e6f43d34cfa1605f27a49c34e8a04c5e78b0babf2596" +checksum = "60db860322da191b40952ad9affe65ea23e7dd6a5c442c2c42865810c6ab8e6b" dependencies = [ "ansi_term", - "lazy_static", "matchers", + "once_cell", "regex", "sharded-slab", "smallvec", @@ -2518,9 +2489,9 @@ checksum = "dcf81ac59edc17cc8697ff311e8f5ef2d99fcbd9817b34cec66f90b6c3dfd987" [[package]] name = "ucd-trie" -version = "0.1.3" +version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56dee185309b50d1f11bfedef0fe6d036842e3fb77413abef29f8f8d1c5d4c1c" +checksum = "9e79c4d996edb816c91e4308506774452e55e95c3c9de07b6729e17e15a5ef81" [[package]] name = "unescape" @@ -2536,15 +2507,15 @@ checksum = "099b7128301d285f79ddd55b9a83d5e6b9e97c92e0ea0daebee7263e932de992" [[package]] name = "unicode-ident" -version = "1.0.0" +version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d22af068fba1eb5edcb4aea19d382b2a3deb4c8f9d475c589b6ada9e0fd493ee" +checksum = "dcc811dc4066ac62f84f11307873c4850cb653bfa9b1719cee2bd2204a4bc5dd" [[package]] name = "unicode-normalization" -version = "0.1.19" +version = "0.1.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d54590932941a9e9266f0832deed84ebe1bf2e4c9e4a3554d393d18f5e854bf9" +checksum = "5c5713f0fc4b5db668a2ac63cdb7bb4469d8c9fed047b1d0292cc7b0ce2ba921" dependencies = [ "tinyvec", ] @@ -2557,9 +2528,9 @@ checksum = "a156c684c91ea7d62626509bce3cb4e1d9ed5c4d978f7b4352658f96a4c26b4a" [[package]] name = "ureq" -version = "2.4.0" +version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9399fa2f927a3d327187cbd201480cee55bee6ac5d3c77dd27f0c6814cff16d5" +checksum = "b97acb4c28a254fd7a4aeec976c46a7fa404eac4d7c134b30c75144846d7cb8f" dependencies = [ "base64", "chunked_transfer", @@ -2575,21 +2546,20 @@ dependencies = [ [[package]] name = "url" -version = "2.2.2" +version = "2.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a507c383b2d33b5fc35d1861e77e6b383d158b2da5e14fe51b83dfedf6fd578c" +checksum = "0d68c799ae75762b8c3fe375feb6600ef5602c883c5d21eb51c09f22b83c4643" dependencies = [ "form_urlencoded", "idna", - "matches", "percent-encoding", ] [[package]] name = "uuid" -version = "1.1.1" +version = "1.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c6d5d669b51467dcf7b2f1a796ce0f955f05f01cafda6c19d6e95f730df29238" +checksum = "dd6469f4314d5f1ffec476e05f17cc9a78bc7a27a6a857842170bdf8d6f98d2f" dependencies = [ "getrandom", ] @@ -2660,9 +2630,9 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" -version = "0.2.81" +version = "0.2.83" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c53b543413a17a202f4be280a7e5c62a1c69345f5de525ee64f8cfdbc954994" +checksum = "eaf9f5aceeec8be17c128b2e93e031fb8a4d469bb9c4ae2d7dc1888b26887268" dependencies = [ "cfg-if", "wasm-bindgen-macro", @@ -2670,13 +2640,13 @@ dependencies = [ [[package]] name = "wasm-bindgen-backend" -version = "0.2.81" +version = "0.2.83" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5491a68ab4500fa6b4d726bd67408630c3dbe9c4fe7bda16d5c82a1fd8c7340a" +checksum = "4c8ffb332579b0557b52d268b91feab8df3615f265d5270fec2a8c95b17c1142" dependencies = [ "bumpalo", - "lazy_static", "log", + "once_cell", "proc-macro2", "quote", "syn", @@ -2685,9 +2655,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.81" +version = "0.2.83" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c441e177922bc58f1e12c022624b6216378e5febc2f0533e41ba443d505b80aa" +checksum = "052be0f94026e6cbc75cdefc9bae13fd6052cdcaf532fa6c45e7ae33a1e6c810" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -2695,9 +2665,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.81" +version = "0.2.83" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d94ac45fcf608c1f45ef53e748d35660f168490c10b23704c7779ab8f5c3048" +checksum = "07bc0c051dc5f23e307b13285f9d75df86bfdf816c5721e573dec1f9b8aa193c" dependencies = [ "proc-macro2", "quote", @@ -2708,15 +2678,15 @@ dependencies = [ [[package]] name = "wasm-bindgen-shared" -version = "0.2.81" +version = "0.2.83" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a89911bd99e5f3659ec4acf9c4d93b0a90fe4a2a11f15328472058edc5261be" +checksum = "1c38c045535d93ec4f0b4defec448e4291638ee608530863b1e2ba115d4fff7f" [[package]] name = "web-sys" -version = "0.3.58" +version = "0.3.60" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2fed94beee57daf8dd7d51f2b15dc2bcde92d7a72304cdf662a4371008b71b90" +checksum = "bcda906d8be16e728fd5adc5b729afad4e444e106ab28cd1c7256e54fa61510f" dependencies = [ "js-sys", "wasm-bindgen", @@ -2734,9 +2704,9 @@ dependencies = [ [[package]] name = "webpki-roots" -version = "0.22.3" +version = "0.22.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44d8de8415c823c8abd270ad483c6feeac771fad964890779f9a8cb24fbbc1bf" +checksum = "368bfe657969fb01238bb756d351dcade285e0f6fcbd36dcb23359a5169975be" dependencies = [ "webpki", ] diff --git a/cargo-pgx/Cargo.toml b/cargo-pgx/Cargo.toml index fb8ba306d..3d37ed0a4 100644 --- a/cargo-pgx/Cargo.toml +++ b/cargo-pgx/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cargo-pgx" -version = "0.5.0-beta.0" +version = "0.5.0-beta.1" authors = ["ZomboDB, LLC "] license = "MIT" description = "Cargo subcommand for 'pgx' to make Postgres extension development easy" @@ -17,33 +17,33 @@ rust-version = "1.58" [dependencies] atty = "0.2.14" cargo_metadata = "0.14.2" -cargo_toml = "0.11.5" -clap = { version = "3.1.18", features = [ "env", "suggestions", "cargo", "derive" ] } +cargo_toml = "0.11.8" +clap = { version = "3.2.22", features = [ "env", "suggestions", "cargo", "derive" ] } clap-cargo = { version = "0.8.0", features = [ "cargo_metadata" ] } -semver = "1.0.9" -owo-colors = { version = "3.4.0", features = [ "supports-colors" ] } +semver = "1.0.14" +owo-colors = { version = "3.5.0", features = [ "supports-colors" ] } env_proxy = "0.4.1" num_cpus = "1.13.1" -pgx-pg-config = { path = "../pgx-pg-config", version = "=0.5.0-beta.0" } -pgx-utils = { path = "../pgx-utils", version = "=0.5.0-beta.0" } -prettyplease = "0.1.10" -proc-macro2 = { version = "1.0.39", features = [ "span-locations" ] } -quote = "1.0.18" +pgx-pg-config = { path = "../pgx-pg-config", version = "=0.5.0-beta.1" } +pgx-utils = { path = "../pgx-utils", version = "=0.5.0-beta.1" } +prettyplease = "0.1.19" +proc-macro2 = { version = "1.0.44", features = [ "span-locations" ] } +quote = "1.0.21" rayon = "1.5.3" -regex = "1.5.5" -ureq = { version = "2.4.0", features = ["native-tls"] } -url = "2.2.2" -serde = { version = "1.0.137", features = [ "derive" ] } -serde_derive = "1.0.137" +regex = "1.6.0" +ureq = { version = "2.5.0", features = ["native-tls"] } +url = "2.3.1" +serde = { version = "1.0.145", features = [ "derive" ] } +serde_derive = "1.0.145" serde-xml-rs = "0.5.1" -syn = { version = "1.0.95", features = [ "extra-traits", "full", "fold", "parsing" ] } +syn = { version = "1.0.101", features = [ "extra-traits", "full", "fold", "parsing" ] } unescape = "0.1.0" -fork = "0.1.19" +fork = "0.1.20" libloading = "0.7.3" object = "0.28.4" -once_cell = "1.10.0" +once_cell = "1.15.0" eyre = "0.6.8" -color-eyre = "0.6.1" -tracing = "0.1.34" +color-eyre = "0.6.2" +tracing = "0.1.36" tracing-error = "0.2.0" -tracing-subscriber = { version = "0.3.11", features = [ "env-filter" ] } +tracing-subscriber = { version = "0.3.15", features = [ "env-filter" ] } diff --git a/cargo-pgx/src/templates/cargo_toml b/cargo-pgx/src/templates/cargo_toml index bb4244f75..3982beb72 100644 --- a/cargo-pgx/src/templates/cargo_toml +++ b/cargo-pgx/src/templates/cargo_toml @@ -17,10 +17,10 @@ pg14 = ["pgx/pg14", "pgx-tests/pg14" ] pg_test = [] [dependencies] -pgx = "=0.5.0-beta.0" +pgx = "=0.5.0-beta.1" [dev-dependencies] -pgx-tests = "=0.5.0-beta.0" +pgx-tests = "=0.5.0-beta.1" [profile.dev] panic = "unwind" diff --git a/nix/templates/default/Cargo.toml b/nix/templates/default/Cargo.toml index f2f06e4c4..bfe3481db 100644 --- a/nix/templates/default/Cargo.toml +++ b/nix/templates/default/Cargo.toml @@ -17,13 +17,13 @@ pg14 = ["pgx/pg14", "pgx-tests/pg14" ] pg_test = [] [dependencies] -pgx = "=0.5.0-beta.0" -pgx-macros = "=0.5.0-beta.0" -pgx-utils = "=0.5.0-beta.0" +pgx = "=0.5.0-beta.1" +pgx-macros = "=0.5.0-beta.1" +pgx-utils = "=0.5.0-beta.1" [dev-dependencies] -pgx-tests = "=0.5.0-beta.0" +pgx-tests = "=0.5.0-beta.1" tempfile = "3.2.0" once_cell = "1.7.2" diff --git a/pgx-examples/aggregate/Cargo.toml b/pgx-examples/aggregate/Cargo.toml index 4a751ded5..d96d034b4 100644 --- a/pgx-examples/aggregate/Cargo.toml +++ b/pgx-examples/aggregate/Cargo.toml @@ -18,7 +18,7 @@ pg_test = [] [dependencies] pgx = { path = "../../pgx", default-features = false } -serde = "1.0.137" +serde = "1.0.145" [dev-dependencies] pgx-tests = { path = "../../pgx-tests" } diff --git a/pgx-examples/arrays/Cargo.toml b/pgx-examples/arrays/Cargo.toml index 478de1106..42bfeadaa 100644 --- a/pgx-examples/arrays/Cargo.toml +++ b/pgx-examples/arrays/Cargo.toml @@ -18,7 +18,7 @@ pg_test = [] [dependencies] pgx = { path = "../../pgx", default-features = false } -serde = "1.0.137" +serde = "1.0.145" [dev-dependencies] pgx-tests = { path = "../../pgx-tests" } diff --git a/pgx-examples/bad_ideas/Cargo.toml b/pgx-examples/bad_ideas/Cargo.toml index c965095ae..89b158f1e 100644 --- a/pgx-examples/bad_ideas/Cargo.toml +++ b/pgx-examples/bad_ideas/Cargo.toml @@ -19,7 +19,7 @@ pg_test = [] [dependencies] pgx = { path = "../../pgx", default-features = false } rand = "0.8.5" -ureq = "2.4.0" +ureq = "2.5.0" [dev-dependencies] pgx-tests = { path = "../../pgx-tests" } diff --git a/pgx-examples/composite_type/Cargo.toml b/pgx-examples/composite_type/Cargo.toml index 4f8b2e33d..238ad9eae 100644 --- a/pgx-examples/composite_type/Cargo.toml +++ b/pgx-examples/composite_type/Cargo.toml @@ -18,7 +18,7 @@ pg_test = [] [dependencies] pgx = { path = "../../pgx", default-features = false } -serde = "1.0.137" +serde = "1.0.145" [dev-dependencies] pgx-tests = { path = "../../pgx-tests" } diff --git a/pgx-examples/custom_sql/Cargo.toml b/pgx-examples/custom_sql/Cargo.toml index 73ec016fb..1cd27c533 100644 --- a/pgx-examples/custom_sql/Cargo.toml +++ b/pgx-examples/custom_sql/Cargo.toml @@ -18,7 +18,7 @@ pg_test = [] [dependencies] pgx = { path = "../../pgx", default-features = false } -serde = "1.0.137" +serde = "1.0.145" [dev-dependencies] pgx-tests = { path = "../../pgx-tests" } diff --git a/pgx-examples/custom_types/Cargo.toml b/pgx-examples/custom_types/Cargo.toml index 03bc99902..e5494bc41 100644 --- a/pgx-examples/custom_types/Cargo.toml +++ b/pgx-examples/custom_types/Cargo.toml @@ -19,7 +19,7 @@ pg_test = [] [dependencies] pgx = { path = "../../pgx", default-features = false } maplit = "1.0.2" -serde = "1.0.137" +serde = "1.0.145" [dev-dependencies] pgx-tests = { path = "../../pgx-tests" } diff --git a/pgx-examples/nostd/Cargo.toml b/pgx-examples/nostd/Cargo.toml index 9ca4ebe00..8eb769b40 100644 --- a/pgx-examples/nostd/Cargo.toml +++ b/pgx-examples/nostd/Cargo.toml @@ -18,7 +18,7 @@ pg_test = [] [dependencies] pgx = { path = "../../pgx", default-features = false } -serde = "1.0.137" +serde = "1.0.145" [dev-dependencies] pgx-tests = { path = "../../pgx-tests" } diff --git a/pgx-examples/operators/Cargo.toml b/pgx-examples/operators/Cargo.toml index a0ba8e1f0..731866204 100644 --- a/pgx-examples/operators/Cargo.toml +++ b/pgx-examples/operators/Cargo.toml @@ -19,7 +19,7 @@ pg_test = [] [dependencies] pgx = { path = "../../pgx", default-features = false } maplit = "1.0.2" -serde = "1.0.137" +serde = "1.0.145" [dev-dependencies] pgx-tests = { path = "../../pgx-tests" } diff --git a/pgx-examples/schemas/Cargo.toml b/pgx-examples/schemas/Cargo.toml index 40c800de8..93782af4c 100644 --- a/pgx-examples/schemas/Cargo.toml +++ b/pgx-examples/schemas/Cargo.toml @@ -18,7 +18,7 @@ pg_test = [] [dependencies] pgx = { path = "../../pgx", default-features = false } -serde = "1.0.137" +serde = "1.0.145" [dev-dependencies] pgx-tests = { path = "../../pgx-tests" } diff --git a/pgx-examples/shmem/Cargo.toml b/pgx-examples/shmem/Cargo.toml index a4da20747..78884aba3 100644 --- a/pgx-examples/shmem/Cargo.toml +++ b/pgx-examples/shmem/Cargo.toml @@ -17,9 +17,9 @@ pg14 = ["pgx/pg14", "pgx-tests/pg14" ] pg_test = [] [dependencies] -heapless = "0.7.13" +heapless = "0.7.16" pgx = { path = "../../pgx", default-features = false } -serde = { version = "1.0.137", features = [ "derive" ] } +serde = { version = "1.0.145", features = [ "derive" ] } [dev-dependencies] pgx-tests = { path = "../../pgx-tests" } diff --git a/pgx-macros/Cargo.toml b/pgx-macros/Cargo.toml index 70cb2f206..140a1cf31 100644 --- a/pgx-macros/Cargo.toml +++ b/pgx-macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pgx-macros" -version = "0.5.0-beta.0" +version = "0.5.0-beta.1" authors = ["ZomboDB, LLC "] license = "MIT" description = "Proc Macros for 'pgx'" @@ -19,11 +19,11 @@ proc-macro = true rustc-args = ["--cfg", "docsrs"] [dependencies] -pgx-utils = { path = "../pgx-utils", version = "=0.5.0-beta.0" } -proc-macro2 = "1.0.39" -quote = "1.0.18" -syn = { version = "1.0.95", features = [ "extra-traits", "full", "fold", "parsing" ] } +pgx-utils = { path = "../pgx-utils", version = "=0.5.0-beta.1" } +proc-macro2 = "1.0.44" +quote = "1.0.21" +syn = { version = "1.0.101", features = [ "extra-traits", "full", "fold", "parsing" ] } unescape = "0.1.0" [dev-dependencies] -serde = { version = "1.0.137", features = ["derive"] } +serde = { version = "1.0.145", features = ["derive"] } diff --git a/pgx-pg-config/Cargo.toml b/pgx-pg-config/Cargo.toml index 6a2960a26..67723d011 100644 --- a/pgx-pg-config/Cargo.toml +++ b/pgx-pg-config/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pgx-pg-config" -version = "0.5.0-beta.0" +version = "0.5.0-beta.1" authors = ["ZomboDB, LLC "] license = "MIT" description = "A Postgres pg_config wrapper for 'pgx'" @@ -16,10 +16,10 @@ rust-version = "1.58" [dependencies] dirs = "4.0.0" eyre = "0.6.8" -owo-colors = "3.4.0" -serde = { version = "1.0.137", features = [ "derive" ] } -serde_derive = "1.0.137" -serde_json = "1.0.81" +owo-colors = "3.5.0" +serde = { version = "1.0.145", features = [ "derive" ] } +serde_derive = "1.0.145" +serde_json = "1.0.85" toml = "0.5.9" -tracing = "0.1.34" -url = "2.2.2" +tracing = "0.1.36" +url = "2.3.1" diff --git a/pgx-pg-sys/Cargo.toml b/pgx-pg-sys/Cargo.toml index 1a867745d..fbb76d71d 100644 --- a/pgx-pg-sys/Cargo.toml +++ b/pgx-pg-sys/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pgx-pg-sys" -version = "0.5.0-beta.0" +version = "0.5.0-beta.1" authors = ["ZomboDB, LLC "] license = "MIT" description = "Generated Rust bindings for Postgres internals, for use with 'pgx'" @@ -30,23 +30,23 @@ rustdoc-args = ["--cfg", "docsrs"] [dependencies] memoffset = "0.6.5" -once_cell = "1.10.0" -pgx-macros = { path = "../pgx-macros/", version = "=0.5.0-beta.0" } -pgx-utils = { path = "../pgx-utils/", version = "=0.5.0-beta.0" } +once_cell = "1.15.0" +pgx-macros = { path = "../pgx-macros/", version = "=0.5.0-beta.1" } +pgx-utils = { path = "../pgx-utils/", version = "=0.5.0-beta.1" } # polyfill until #![feature(strict_provenance)] stabilizes sptr = "0.3" [build-dependencies] bindgen = { version = "0.59.2", default-features = false, features = ["runtime"] } build-deps = "0.1.4" -owo-colors = "3.4.0" +owo-colors = "3.5.0" num_cpus = "1.13.1" -pgx-pg-config= { path = "../pgx-pg-config/", version = "=0.5.0-beta.0" } -pgx-utils = { path = "../pgx-utils/", version = "=0.5.0-beta.0" } -proc-macro2 = "1.0.39" -quote = "1.0.18" +pgx-pg-config= { path = "../pgx-pg-config/", version = "=0.5.0-beta.1" } +pgx-utils = { path = "../pgx-utils/", version = "=0.5.0-beta.1" } +proc-macro2 = "1.0.44" +quote = "1.0.21" rayon = "1.5.3" -syn = { version = "1.0.95", features = [ "extra-traits", "full", "fold", "parsing" ] } +syn = { version = "1.0.101", features = [ "extra-traits", "full", "fold", "parsing" ] } eyre = "0.6.8" -color-eyre = "0.6.1" +color-eyre = "0.6.2" rustversion = "1.0" diff --git a/pgx-pg-sys/src/pg10.rs b/pgx-pg-sys/src/pg10.rs index 43dc78b48..92fe69deb 100644 --- a/pgx-pg-sys/src/pg10.rs +++ b/pgx-pg-sys/src/pg10.rs @@ -324,16 +324,16 @@ pub const MAXIMUM_ALIGNOF: u32 = 8; pub const MEMSET_LOOP_LIMIT: u32 = 1024; pub const PACKAGE_BUGREPORT: &[u8; 26usize] = b"pgsql-bugs@postgresql.org\0"; pub const PACKAGE_NAME: &[u8; 11usize] = b"PostgreSQL\0"; -pub const PACKAGE_STRING: &[u8; 17usize] = b"PostgreSQL 10.21\0"; +pub const PACKAGE_STRING: &[u8; 17usize] = b"PostgreSQL 10.22\0"; pub const PACKAGE_TARNAME: &[u8; 11usize] = b"postgresql\0"; pub const PACKAGE_URL: &[u8; 1usize] = b"\0"; -pub const PACKAGE_VERSION: &[u8; 6usize] = b"10.21\0"; +pub const PACKAGE_VERSION: &[u8; 6usize] = b"10.22\0"; pub const PG_KRB_SRVNAM: &[u8; 9usize] = b"postgres\0"; pub const PG_MAJORVERSION: &[u8; 3usize] = b"10\0"; -pub const PG_VERSION: &[u8; 6usize] = b"10.21\0"; -pub const PG_VERSION_NUM: u32 = 100021; +pub const PG_VERSION: &[u8; 6usize] = b"10.22\0"; +pub const PG_VERSION_NUM: u32 = 100022; pub const PG_VERSION_STR: &[u8; 78usize] = - b"PostgreSQL 10.21 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 12.1.0, 64-bit\0"; + b"PostgreSQL 10.22 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 12.2.0, 64-bit\0"; pub const RELSEG_SIZE: u32 = 131072; pub const SIZEOF_LONG: u32 = 8; pub const SIZEOF_OFF_T: u32 = 8; @@ -402,7 +402,7 @@ pub const __STDC_IEC_60559_COMPLEX__: u32 = 201404; pub const __STDC_ISO_10646__: u32 = 201706; pub const __GNU_LIBRARY__: u32 = 6; pub const __GLIBC__: u32 = 2; -pub const __GLIBC_MINOR__: u32 = 35; +pub const __GLIBC_MINOR__: u32 = 36; pub const _SYS_CDEFS_H: u32 = 1; pub const __glibc_c99_flexarr_available: u32 = 1; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI: u32 = 0; @@ -902,6 +902,7 @@ pub const SOL_TLS: u32 = 282; pub const SOL_XDP: u32 = 283; pub const SOL_MPTCP: u32 = 284; pub const SOL_MCTP: u32 = 285; +pub const SOL_SMC: u32 = 286; pub const SOMAXCONN: u32 = 4096; pub const _BITS_SOCKADDR_H: u32 = 1; pub const _SS_SIZE: u32 = 128; @@ -991,6 +992,7 @@ pub const SO_BUSY_POLL_BUDGET: u32 = 70; pub const SO_NETNS_COOKIE: u32 = 71; pub const SO_BUF_LOCK: u32 = 72; pub const SO_RESERVE_MEM: u32 = 73; +pub const SO_TXREHASH: u32 = 74; pub const SO_TIMESTAMP: u32 = 29; pub const SO_TIMESTAMPNS: u32 = 35; pub const SO_TIMESTAMPING: u32 = 37; @@ -1184,7 +1186,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; 29usize] = b"postgres (PostgreSQL) 10.21\n\0"; +pub const PG_BACKEND_VERSIONSTR: &[u8; 29usize] = b"postgres (PostgreSQL) 10.22\n\0"; pub const EXE: &[u8; 1usize] = b"\0"; pub const DEVNULL: &[u8; 10usize] = b"/dev/null\0"; pub const PG_IOLBF: u32 = 1; @@ -2215,6 +2217,7 @@ pub const XACT_SERIALIZABLE: u32 = 3; pub const XACT_FLAGS_ACCESSEDTEMPREL: u32 = 1; pub const XACT_FLAGS_ACQUIREDACCESSEXCLUSIVELOCK: u32 = 2; pub const XACT_FLAGS_ACCESSEDTEMPNAMESPACE: u32 = 4; +pub const XACT_FLAGS_NEEDIMMEDIATECOMMIT: u32 = 8; pub const XLOG_XACT_COMMIT: u32 = 0; pub const XLOG_XACT_PREPARE: u32 = 16; pub const XLOG_XACT_ABORT: u32 = 32; @@ -2891,6 +2894,24 @@ pub const TYPECACHE_BTREE_OPFAMILY: u32 = 512; pub const TYPECACHE_HASH_OPFAMILY: u32 = 1024; pub const TYPECACHE_RANGE_INFO: u32 = 2048; pub const TYPECACHE_DOMAIN_INFO: u32 = 4096; +pub const RANGE_EMPTY: u32 = 1; +pub const RANGE_LB_INC: u32 = 2; +pub const RANGE_UB_INC: u32 = 4; +pub const RANGE_LB_INF: u32 = 8; +pub const RANGE_UB_INF: u32 = 16; +pub const RANGE_LB_NULL: u32 = 32; +pub const RANGE_UB_NULL: u32 = 64; +pub const RANGE_CONTAIN_EMPTY: u32 = 128; +pub const RANGESTRAT_BEFORE: u32 = 1; +pub const RANGESTRAT_OVERLEFT: u32 = 2; +pub const RANGESTRAT_OVERLAPS: u32 = 3; +pub const RANGESTRAT_OVERRIGHT: u32 = 4; +pub const RANGESTRAT_AFTER: u32 = 5; +pub const RANGESTRAT_ADJACENT: u32 = 6; +pub const RANGESTRAT_CONTAINS: u32 = 7; +pub const RANGESTRAT_CONTAINED_BY: u32 = 8; +pub const RANGESTRAT_CONTAINS_ELEM: u32 = 16; +pub const RANGESTRAT_EQ: u32 = 18; pub type Oid = ::std::os::raw::c_uint; pub type pg_int64 = ::std::os::raw::c_long; pub type va_list = __builtin_va_list; @@ -5122,6 +5143,30 @@ pub unsafe fn lcong48_r( lcong48_r(arg___param, arg___buffer) }) } +pub unsafe fn arc4random() -> __uint32_t { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn arc4random() -> __uint32_t; + } + arc4random() + }) +} +pub unsafe fn arc4random_buf(arg___buf: *mut ::std::os::raw::c_void, arg___size: usize) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn arc4random_buf(arg___buf: *mut ::std::os::raw::c_void, arg___size: usize); + } + arc4random_buf(arg___buf, arg___size) + }) +} +pub unsafe fn arc4random_uniform(arg___upper_bound: __uint32_t) -> __uint32_t { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn arc4random_uniform(arg___upper_bound: __uint32_t) -> __uint32_t; + } + arc4random_uniform(arg___upper_bound) + }) +} pub unsafe fn malloc(arg___size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -27871,6 +27916,14 @@ pub struct __dirstream { _unused: [u8; 0], } pub type DIR = __dirstream; +pub unsafe fn closedir(arg___dirp: *mut DIR) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn closedir(arg___dirp: *mut DIR) -> ::std::os::raw::c_int; + } + closedir(arg___dirp) + }) +} pub unsafe fn opendir(arg___name: *const ::std::os::raw::c_char) -> *mut DIR { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -27887,14 +27940,6 @@ pub unsafe fn fdopendir(arg___fd: ::std::os::raw::c_int) -> *mut DIR { fdopendir(arg___fd) }) } -pub unsafe fn closedir(arg___dirp: *mut DIR) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn closedir(arg___dirp: *mut DIR) -> ::std::os::raw::c_int; - } - closedir(arg___dirp) - }) -} pub unsafe fn readdir(arg___dirp: *mut DIR) -> *mut dirent { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -43293,6 +43338,14 @@ pub unsafe fn recordDependencyOnCurrentExtension( recordDependencyOnCurrentExtension(arg_object, arg_isReplace) }) } +pub unsafe fn checkMembershipInCurrentExtension(arg_object: *const ObjectAddress) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn checkMembershipInCurrentExtension(arg_object: *const ObjectAddress); + } + checkMembershipInCurrentExtension(arg_object) + }) +} pub unsafe fn deleteDependencyRecordsFor( arg_classId: Oid, arg_objectId: Oid, @@ -92384,6 +92437,346 @@ pub unsafe fn compare_values_of_enum( compare_values_of_enum(arg_tcache, arg_arg1, arg_arg2) }) } +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct RangeType { + pub vl_len_: int32, + pub rangetypid: Oid, +} +#[repr(C)] +pub struct RangeBound { + pub val: Datum, + pub infinite: bool, + pub inclusive: bool, + pub lower: bool, +} +impl Default for RangeBound { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub unsafe fn range_contains_elem_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r: *mut RangeType, + arg_val: Datum, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_contains_elem_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r: *mut RangeType, + arg_val: Datum, + ) -> bool; + } + range_contains_elem_internal(arg_typcache, arg_r, arg_val) + }) +} +pub unsafe fn range_eq_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_eq_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_eq_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_ne_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_ne_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_ne_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_contains_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_contains_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_contains_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_contained_by_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_contained_by_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_contained_by_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_before_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_before_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_before_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_after_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_after_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_after_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_adjacent_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_adjacent_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_adjacent_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_overlaps_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_overlaps_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_overlaps_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_overleft_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_overleft_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_overleft_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_overright_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_overright_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_overright_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_get_typcache( + arg_fcinfo: FunctionCallInfo, + arg_rngtypid: Oid, +) -> *mut TypeCacheEntry { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_get_typcache( + arg_fcinfo: FunctionCallInfo, + arg_rngtypid: Oid, + ) -> *mut TypeCacheEntry; + } + range_get_typcache(arg_fcinfo, arg_rngtypid) + }) +} +pub unsafe fn range_serialize( + arg_typcache: *mut TypeCacheEntry, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: bool, +) -> *mut RangeType { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_serialize( + arg_typcache: *mut TypeCacheEntry, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: bool, + ) -> *mut RangeType; + } + range_serialize(arg_typcache, arg_lower, arg_upper, arg_empty) + }) +} +pub unsafe fn range_deserialize( + arg_typcache: *mut TypeCacheEntry, + arg_range: *mut RangeType, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: *mut bool, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_deserialize( + arg_typcache: *mut TypeCacheEntry, + arg_range: *mut RangeType, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: *mut bool, + ); + } + range_deserialize(arg_typcache, arg_range, arg_lower, arg_upper, arg_empty) + }) +} +pub unsafe fn range_get_flags(arg_range: *mut RangeType) -> ::std::os::raw::c_char { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_get_flags(arg_range: *mut RangeType) -> ::std::os::raw::c_char; + } + range_get_flags(arg_range) + }) +} +pub unsafe fn range_set_contain_empty(arg_range: *mut RangeType) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_set_contain_empty(arg_range: *mut RangeType); + } + range_set_contain_empty(arg_range) + }) +} +pub unsafe fn make_range( + arg_typcache: *mut TypeCacheEntry, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: bool, +) -> *mut RangeType { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn make_range( + arg_typcache: *mut TypeCacheEntry, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: bool, + ) -> *mut RangeType; + } + make_range(arg_typcache, arg_lower, arg_upper, arg_empty) + }) +} +pub unsafe fn range_cmp_bounds( + arg_typcache: *mut TypeCacheEntry, + arg_b1: *mut RangeBound, + arg_b2: *mut RangeBound, +) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_cmp_bounds( + arg_typcache: *mut TypeCacheEntry, + arg_b1: *mut RangeBound, + arg_b2: *mut RangeBound, + ) -> ::std::os::raw::c_int; + } + range_cmp_bounds(arg_typcache, arg_b1, arg_b2) + }) +} +pub unsafe fn range_cmp_bound_values( + arg_typcache: *mut TypeCacheEntry, + arg_b1: *mut RangeBound, + arg_b2: *mut RangeBound, +) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_cmp_bound_values( + arg_typcache: *mut TypeCacheEntry, + arg_b1: *mut RangeBound, + arg_b2: *mut RangeBound, + ) -> ::std::os::raw::c_int; + } + range_cmp_bound_values(arg_typcache, arg_b1, arg_b2) + }) +} +pub unsafe fn bounds_adjacent( + arg_typcache: *mut TypeCacheEntry, + arg_bound1: RangeBound, + arg_bound2: RangeBound, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn bounds_adjacent( + arg_typcache: *mut TypeCacheEntry, + arg_bound1: RangeBound, + arg_bound2: RangeBound, + ) -> bool; + } + bounds_adjacent(arg_typcache, arg_bound1, arg_bound2) + }) +} +pub unsafe fn make_empty_range(arg_typcache: *mut TypeCacheEntry) -> *mut RangeType { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn make_empty_range(arg_typcache: *mut TypeCacheEntry) -> *mut RangeType; + } + make_empty_range(arg_typcache) + }) +} pub type __builtin_va_list = [__va_list_tag; 1usize]; #[repr(C)] #[derive(Debug, Copy, Clone)] diff --git a/pgx-pg-sys/src/pg11.rs b/pgx-pg-sys/src/pg11.rs index 0eb8dec0b..5c0d9640e 100644 --- a/pgx-pg-sys/src/pg11.rs +++ b/pgx-pg-sys/src/pg11.rs @@ -320,16 +320,16 @@ pub const MAXIMUM_ALIGNOF: u32 = 8; pub const MEMSET_LOOP_LIMIT: u32 = 1024; pub const PACKAGE_BUGREPORT: &[u8; 26usize] = b"pgsql-bugs@postgresql.org\0"; pub const PACKAGE_NAME: &[u8; 11usize] = b"PostgreSQL\0"; -pub const PACKAGE_STRING: &[u8; 17usize] = b"PostgreSQL 11.16\0"; +pub const PACKAGE_STRING: &[u8; 17usize] = b"PostgreSQL 11.17\0"; pub const PACKAGE_TARNAME: &[u8; 11usize] = b"postgresql\0"; pub const PACKAGE_URL: &[u8; 1usize] = b"\0"; -pub const PACKAGE_VERSION: &[u8; 6usize] = b"11.16\0"; +pub const PACKAGE_VERSION: &[u8; 6usize] = b"11.17\0"; pub const PG_KRB_SRVNAM: &[u8; 9usize] = b"postgres\0"; pub const PG_MAJORVERSION: &[u8; 3usize] = b"11\0"; -pub const PG_VERSION: &[u8; 6usize] = b"11.16\0"; -pub const PG_VERSION_NUM: u32 = 110016; +pub const PG_VERSION: &[u8; 6usize] = b"11.17\0"; +pub const PG_VERSION_NUM: u32 = 110017; pub const PG_VERSION_STR: &[u8; 78usize] = - b"PostgreSQL 11.16 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 12.1.0, 64-bit\0"; + b"PostgreSQL 11.17 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 12.2.0, 64-bit\0"; pub const RELSEG_SIZE: u32 = 131072; pub const SIZEOF_BOOL: u32 = 1; pub const SIZEOF_LONG: u32 = 8; @@ -399,7 +399,7 @@ pub const __STDC_IEC_60559_COMPLEX__: u32 = 201404; pub const __STDC_ISO_10646__: u32 = 201706; pub const __GNU_LIBRARY__: u32 = 6; pub const __GLIBC__: u32 = 2; -pub const __GLIBC_MINOR__: u32 = 35; +pub const __GLIBC_MINOR__: u32 = 36; pub const _SYS_CDEFS_H: u32 = 1; pub const __glibc_c99_flexarr_available: u32 = 1; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI: u32 = 0; @@ -901,6 +901,7 @@ pub const SOL_TLS: u32 = 282; pub const SOL_XDP: u32 = 283; pub const SOL_MPTCP: u32 = 284; pub const SOL_MCTP: u32 = 285; +pub const SOL_SMC: u32 = 286; pub const SOMAXCONN: u32 = 4096; pub const _BITS_SOCKADDR_H: u32 = 1; pub const _SS_SIZE: u32 = 128; @@ -990,6 +991,7 @@ pub const SO_BUSY_POLL_BUDGET: u32 = 70; pub const SO_NETNS_COOKIE: u32 = 71; pub const SO_BUF_LOCK: u32 = 72; pub const SO_RESERVE_MEM: u32 = 73; +pub const SO_TXREHASH: u32 = 74; pub const SO_TIMESTAMP: u32 = 29; pub const SO_TIMESTAMPNS: u32 = 35; pub const SO_TIMESTAMPING: u32 = 37; @@ -1183,7 +1185,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; 29usize] = b"postgres (PostgreSQL) 11.16\n\0"; +pub const PG_BACKEND_VERSIONSTR: &[u8; 29usize] = b"postgres (PostgreSQL) 11.17\n\0"; pub const EXE: &[u8; 1usize] = b"\0"; pub const DEVNULL: &[u8; 10usize] = b"/dev/null\0"; pub const PG_IOLBF: u32 = 1; @@ -2192,6 +2194,7 @@ pub const XACT_SERIALIZABLE: u32 = 3; pub const XACT_FLAGS_ACCESSEDTEMPREL: u32 = 1; pub const XACT_FLAGS_ACQUIREDACCESSEXCLUSIVELOCK: u32 = 2; pub const XACT_FLAGS_ACCESSEDTEMPNAMESPACE: u32 = 4; +pub const XACT_FLAGS_NEEDIMMEDIATECOMMIT: u32 = 8; pub const XLOG_XACT_COMMIT: u32 = 0; pub const XLOG_XACT_PREPARE: u32 = 16; pub const XLOG_XACT_ABORT: u32 = 32; @@ -3056,6 +3059,24 @@ pub const TYPECACHE_DOMAIN_BASE_INFO: u32 = 4096; pub const TYPECACHE_DOMAIN_CONSTR_INFO: u32 = 8192; pub const TYPECACHE_HASH_EXTENDED_PROC: u32 = 16384; pub const TYPECACHE_HASH_EXTENDED_PROC_FINFO: u32 = 32768; +pub const RANGE_EMPTY: u32 = 1; +pub const RANGE_LB_INC: u32 = 2; +pub const RANGE_UB_INC: u32 = 4; +pub const RANGE_LB_INF: u32 = 8; +pub const RANGE_UB_INF: u32 = 16; +pub const RANGE_LB_NULL: u32 = 32; +pub const RANGE_UB_NULL: u32 = 64; +pub const RANGE_CONTAIN_EMPTY: u32 = 128; +pub const RANGESTRAT_BEFORE: u32 = 1; +pub const RANGESTRAT_OVERLEFT: u32 = 2; +pub const RANGESTRAT_OVERLAPS: u32 = 3; +pub const RANGESTRAT_OVERRIGHT: u32 = 4; +pub const RANGESTRAT_AFTER: u32 = 5; +pub const RANGESTRAT_ADJACENT: u32 = 6; +pub const RANGESTRAT_CONTAINS: u32 = 7; +pub const RANGESTRAT_CONTAINED_BY: u32 = 8; +pub const RANGESTRAT_CONTAINS_ELEM: u32 = 16; +pub const RANGESTRAT_EQ: u32 = 18; pub type Oid = ::std::os::raw::c_uint; pub type pg_int64 = ::std::os::raw::c_long; pub type va_list = __builtin_va_list; @@ -5287,6 +5308,30 @@ pub unsafe fn lcong48_r( lcong48_r(arg___param, arg___buffer) }) } +pub unsafe fn arc4random() -> __uint32_t { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn arc4random() -> __uint32_t; + } + arc4random() + }) +} +pub unsafe fn arc4random_buf(arg___buf: *mut ::std::os::raw::c_void, arg___size: usize) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn arc4random_buf(arg___buf: *mut ::std::os::raw::c_void, arg___size: usize); + } + arc4random_buf(arg___buf, arg___size) + }) +} +pub unsafe fn arc4random_uniform(arg___upper_bound: __uint32_t) -> __uint32_t { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn arc4random_uniform(arg___upper_bound: __uint32_t) -> __uint32_t; + } + arc4random_uniform(arg___upper_bound) + }) +} pub unsafe fn malloc(arg___size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -24656,6 +24701,14 @@ pub struct __dirstream { _unused: [u8; 0], } pub type DIR = __dirstream; +pub unsafe fn closedir(arg___dirp: *mut DIR) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn closedir(arg___dirp: *mut DIR) -> ::std::os::raw::c_int; + } + closedir(arg___dirp) + }) +} pub unsafe fn opendir(arg___name: *const ::std::os::raw::c_char) -> *mut DIR { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -24672,14 +24725,6 @@ pub unsafe fn fdopendir(arg___fd: ::std::os::raw::c_int) -> *mut DIR { fdopendir(arg___fd) }) } -pub unsafe fn closedir(arg___dirp: *mut DIR) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn closedir(arg___dirp: *mut DIR) -> ::std::os::raw::c_int; - } - closedir(arg___dirp) - }) -} pub unsafe fn readdir(arg___dirp: *mut DIR) -> *mut dirent { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -30395,6 +30440,7 @@ pub struct AlterTableCmd { pub def: *mut Node, pub behavior: DropBehavior, pub missing_ok: bool, + pub recurse: bool, } impl Default for AlterTableCmd { fn default() -> Self { @@ -39596,6 +39642,22 @@ pub unsafe fn LWLockHeldByMe(arg_lock: *mut LWLock) -> bool { LWLockHeldByMe(arg_lock) }) } +pub unsafe fn LWLockAnyHeldByMe( + arg_lock: *mut LWLock, + arg_nlocks: ::std::os::raw::c_int, + arg_stride: usize, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn LWLockAnyHeldByMe( + arg_lock: *mut LWLock, + arg_nlocks: ::std::os::raw::c_int, + arg_stride: usize, + ) -> bool; + } + LWLockAnyHeldByMe(arg_lock, arg_nlocks, arg_stride) + }) +} pub unsafe fn LWLockHeldByMeInMode(arg_lock: *mut LWLock, arg_mode: LWLockMode) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -49708,6 +49770,14 @@ pub unsafe fn recordDependencyOnCurrentExtension( recordDependencyOnCurrentExtension(arg_object, arg_isReplace) }) } +pub unsafe fn checkMembershipInCurrentExtension(arg_object: *const ObjectAddress) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn checkMembershipInCurrentExtension(arg_object: *const ObjectAddress); + } + checkMembershipInCurrentExtension(arg_object) + }) +} pub unsafe fn deleteDependencyRecordsFor( arg_classId: Oid, arg_objectId: Oid, @@ -54501,6 +54571,35 @@ pub unsafe fn renametrig(arg_stmt: *mut RenameStmt) -> ObjectAddress { renametrig(arg_stmt) }) } +pub unsafe fn EnableDisableTriggerNew( + arg_rel: Relation, + arg_tgname: *const ::std::os::raw::c_char, + arg_fires_when: ::std::os::raw::c_char, + arg_skip_system: bool, + arg_recurse: bool, + arg_lockmode: LOCKMODE, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn EnableDisableTriggerNew( + arg_rel: Relation, + arg_tgname: *const ::std::os::raw::c_char, + arg_fires_when: ::std::os::raw::c_char, + arg_skip_system: bool, + arg_recurse: bool, + arg_lockmode: LOCKMODE, + ); + } + EnableDisableTriggerNew( + arg_rel, + arg_tgname, + arg_fires_when, + arg_skip_system, + arg_recurse, + arg_lockmode, + ) + }) +} pub unsafe fn EnableDisableTrigger( arg_rel: Relation, arg_tgname: *const ::std::os::raw::c_char, @@ -96183,6 +96282,346 @@ pub unsafe fn SharedRecordTypmodRegistryAttach(arg_arg1: *mut SharedRecordTypmod SharedRecordTypmodRegistryAttach(arg_arg1) }) } +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct RangeType { + pub vl_len_: int32, + pub rangetypid: Oid, +} +#[repr(C)] +pub struct RangeBound { + pub val: Datum, + pub infinite: bool, + pub inclusive: bool, + pub lower: bool, +} +impl Default for RangeBound { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub unsafe fn range_contains_elem_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r: *mut RangeType, + arg_val: Datum, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_contains_elem_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r: *mut RangeType, + arg_val: Datum, + ) -> bool; + } + range_contains_elem_internal(arg_typcache, arg_r, arg_val) + }) +} +pub unsafe fn range_eq_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_eq_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_eq_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_ne_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_ne_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_ne_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_contains_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_contains_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_contains_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_contained_by_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_contained_by_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_contained_by_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_before_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_before_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_before_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_after_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_after_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_after_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_adjacent_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_adjacent_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_adjacent_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_overlaps_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_overlaps_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_overlaps_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_overleft_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_overleft_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_overleft_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_overright_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_overright_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_overright_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_get_typcache( + arg_fcinfo: FunctionCallInfo, + arg_rngtypid: Oid, +) -> *mut TypeCacheEntry { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_get_typcache( + arg_fcinfo: FunctionCallInfo, + arg_rngtypid: Oid, + ) -> *mut TypeCacheEntry; + } + range_get_typcache(arg_fcinfo, arg_rngtypid) + }) +} +pub unsafe fn range_serialize( + arg_typcache: *mut TypeCacheEntry, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: bool, +) -> *mut RangeType { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_serialize( + arg_typcache: *mut TypeCacheEntry, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: bool, + ) -> *mut RangeType; + } + range_serialize(arg_typcache, arg_lower, arg_upper, arg_empty) + }) +} +pub unsafe fn range_deserialize( + arg_typcache: *mut TypeCacheEntry, + arg_range: *mut RangeType, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: *mut bool, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_deserialize( + arg_typcache: *mut TypeCacheEntry, + arg_range: *mut RangeType, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: *mut bool, + ); + } + range_deserialize(arg_typcache, arg_range, arg_lower, arg_upper, arg_empty) + }) +} +pub unsafe fn range_get_flags(arg_range: *mut RangeType) -> ::std::os::raw::c_char { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_get_flags(arg_range: *mut RangeType) -> ::std::os::raw::c_char; + } + range_get_flags(arg_range) + }) +} +pub unsafe fn range_set_contain_empty(arg_range: *mut RangeType) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_set_contain_empty(arg_range: *mut RangeType); + } + range_set_contain_empty(arg_range) + }) +} +pub unsafe fn make_range( + arg_typcache: *mut TypeCacheEntry, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: bool, +) -> *mut RangeType { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn make_range( + arg_typcache: *mut TypeCacheEntry, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: bool, + ) -> *mut RangeType; + } + make_range(arg_typcache, arg_lower, arg_upper, arg_empty) + }) +} +pub unsafe fn range_cmp_bounds( + arg_typcache: *mut TypeCacheEntry, + arg_b1: *mut RangeBound, + arg_b2: *mut RangeBound, +) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_cmp_bounds( + arg_typcache: *mut TypeCacheEntry, + arg_b1: *mut RangeBound, + arg_b2: *mut RangeBound, + ) -> ::std::os::raw::c_int; + } + range_cmp_bounds(arg_typcache, arg_b1, arg_b2) + }) +} +pub unsafe fn range_cmp_bound_values( + arg_typcache: *mut TypeCacheEntry, + arg_b1: *mut RangeBound, + arg_b2: *mut RangeBound, +) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_cmp_bound_values( + arg_typcache: *mut TypeCacheEntry, + arg_b1: *mut RangeBound, + arg_b2: *mut RangeBound, + ) -> ::std::os::raw::c_int; + } + range_cmp_bound_values(arg_typcache, arg_b1, arg_b2) + }) +} +pub unsafe fn bounds_adjacent( + arg_typcache: *mut TypeCacheEntry, + arg_bound1: RangeBound, + arg_bound2: RangeBound, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn bounds_adjacent( + arg_typcache: *mut TypeCacheEntry, + arg_bound1: RangeBound, + arg_bound2: RangeBound, + ) -> bool; + } + bounds_adjacent(arg_typcache, arg_bound1, arg_bound2) + }) +} +pub unsafe fn make_empty_range(arg_typcache: *mut TypeCacheEntry) -> *mut RangeType { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn make_empty_range(arg_typcache: *mut TypeCacheEntry) -> *mut RangeType; + } + make_empty_range(arg_typcache) + }) +} pub type __builtin_va_list = [__va_list_tag; 1usize]; #[repr(C)] #[derive(Debug, Copy, Clone)] diff --git a/pgx-pg-sys/src/pg12.rs b/pgx-pg-sys/src/pg12.rs index c13f53a0f..fdb4355a3 100644 --- a/pgx-pg-sys/src/pg12.rs +++ b/pgx-pg-sys/src/pg12.rs @@ -327,16 +327,16 @@ pub const MAXIMUM_ALIGNOF: u32 = 8; pub const MEMSET_LOOP_LIMIT: u32 = 1024; pub const PACKAGE_BUGREPORT: &[u8; 32usize] = b"pgsql-bugs@lists.postgresql.org\0"; pub const PACKAGE_NAME: &[u8; 11usize] = b"PostgreSQL\0"; -pub const PACKAGE_STRING: &[u8; 17usize] = b"PostgreSQL 12.11\0"; +pub const PACKAGE_STRING: &[u8; 17usize] = b"PostgreSQL 12.12\0"; pub const PACKAGE_TARNAME: &[u8; 11usize] = b"postgresql\0"; pub const PACKAGE_URL: &[u8; 1usize] = b"\0"; -pub const PACKAGE_VERSION: &[u8; 6usize] = b"12.11\0"; +pub const PACKAGE_VERSION: &[u8; 6usize] = b"12.12\0"; pub const PG_KRB_SRVNAM: &[u8; 9usize] = b"postgres\0"; pub const PG_MAJORVERSION: &[u8; 3usize] = b"12\0"; -pub const PG_VERSION: &[u8; 6usize] = b"12.11\0"; -pub const PG_VERSION_NUM: u32 = 120011; +pub const PG_VERSION: &[u8; 6usize] = b"12.12\0"; +pub const PG_VERSION_NUM: u32 = 120012; pub const PG_VERSION_STR: &[u8; 78usize] = - b"PostgreSQL 12.11 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 12.1.0, 64-bit\0"; + b"PostgreSQL 12.12 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 12.2.0, 64-bit\0"; pub const RELSEG_SIZE: u32 = 131072; pub const SIZEOF_BOOL: u32 = 1; pub const SIZEOF_LONG: u32 = 8; @@ -406,7 +406,7 @@ pub const __STDC_IEC_60559_COMPLEX__: u32 = 201404; pub const __STDC_ISO_10646__: u32 = 201706; pub const __GNU_LIBRARY__: u32 = 6; pub const __GLIBC__: u32 = 2; -pub const __GLIBC_MINOR__: u32 = 35; +pub const __GLIBC_MINOR__: u32 = 36; pub const _SYS_CDEFS_H: u32 = 1; pub const __glibc_c99_flexarr_available: u32 = 1; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI: u32 = 0; @@ -908,6 +908,7 @@ pub const SOL_TLS: u32 = 282; pub const SOL_XDP: u32 = 283; pub const SOL_MPTCP: u32 = 284; pub const SOL_MCTP: u32 = 285; +pub const SOL_SMC: u32 = 286; pub const SOMAXCONN: u32 = 4096; pub const _BITS_SOCKADDR_H: u32 = 1; pub const _SS_SIZE: u32 = 128; @@ -997,6 +998,7 @@ pub const SO_BUSY_POLL_BUDGET: u32 = 70; pub const SO_NETNS_COOKIE: u32 = 71; pub const SO_BUF_LOCK: u32 = 72; pub const SO_RESERVE_MEM: u32 = 73; +pub const SO_TXREHASH: u32 = 74; pub const SO_TIMESTAMP: u32 = 29; pub const SO_TIMESTAMPNS: u32 = 35; pub const SO_TIMESTAMPING: u32 = 37; @@ -1190,7 +1192,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; 29usize] = b"postgres (PostgreSQL) 12.11\n\0"; +pub const PG_BACKEND_VERSIONSTR: &[u8; 29usize] = b"postgres (PostgreSQL) 12.12\n\0"; pub const EXE: &[u8; 1usize] = b"\0"; pub const DEVNULL: &[u8; 10usize] = b"/dev/null\0"; pub const USE_REPL_SNPRINTF: u32 = 1; @@ -2364,6 +2366,7 @@ pub const XACT_REPEATABLE_READ: u32 = 2; pub const XACT_SERIALIZABLE: u32 = 3; pub const XACT_FLAGS_ACCESSEDTEMPNAMESPACE: u32 = 1; pub const XACT_FLAGS_ACQUIREDACCESSEXCLUSIVELOCK: u32 = 2; +pub const XACT_FLAGS_NEEDIMMEDIATECOMMIT: u32 = 4; pub const XLOG_XACT_COMMIT: u32 = 0; pub const XLOG_XACT_PREPARE: u32 = 16; pub const XLOG_XACT_ABORT: u32 = 32; @@ -3113,6 +3116,24 @@ pub const TYPECACHE_DOMAIN_BASE_INFO: u32 = 4096; pub const TYPECACHE_DOMAIN_CONSTR_INFO: u32 = 8192; pub const TYPECACHE_HASH_EXTENDED_PROC: u32 = 16384; pub const TYPECACHE_HASH_EXTENDED_PROC_FINFO: u32 = 32768; +pub const RANGE_EMPTY: u32 = 1; +pub const RANGE_LB_INC: u32 = 2; +pub const RANGE_UB_INC: u32 = 4; +pub const RANGE_LB_INF: u32 = 8; +pub const RANGE_UB_INF: u32 = 16; +pub const RANGE_LB_NULL: u32 = 32; +pub const RANGE_UB_NULL: u32 = 64; +pub const RANGE_CONTAIN_EMPTY: u32 = 128; +pub const RANGESTRAT_BEFORE: u32 = 1; +pub const RANGESTRAT_OVERLEFT: u32 = 2; +pub const RANGESTRAT_OVERLAPS: u32 = 3; +pub const RANGESTRAT_OVERRIGHT: u32 = 4; +pub const RANGESTRAT_AFTER: u32 = 5; +pub const RANGESTRAT_ADJACENT: u32 = 6; +pub const RANGESTRAT_CONTAINS: u32 = 7; +pub const RANGESTRAT_CONTAINED_BY: u32 = 8; +pub const RANGESTRAT_CONTAINS_ELEM: u32 = 16; +pub const RANGESTRAT_EQ: u32 = 18; pub type Oid = ::std::os::raw::c_uint; pub type pg_int64 = ::std::os::raw::c_long; pub type va_list = __builtin_va_list; @@ -5344,6 +5365,30 @@ pub unsafe fn lcong48_r( lcong48_r(arg___param, arg___buffer) }) } +pub unsafe fn arc4random() -> __uint32_t { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn arc4random() -> __uint32_t; + } + arc4random() + }) +} +pub unsafe fn arc4random_buf(arg___buf: *mut ::std::os::raw::c_void, arg___size: usize) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn arc4random_buf(arg___buf: *mut ::std::os::raw::c_void, arg___size: usize); + } + arc4random_buf(arg___buf, arg___size) + }) +} +pub unsafe fn arc4random_uniform(arg___upper_bound: __uint32_t) -> __uint32_t { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn arc4random_uniform(arg___upper_bound: __uint32_t) -> __uint32_t; + } + arc4random_uniform(arg___upper_bound) + }) +} pub unsafe fn malloc(arg___size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -23393,6 +23438,14 @@ pub struct __dirstream { _unused: [u8; 0], } pub type DIR = __dirstream; +pub unsafe fn closedir(arg___dirp: *mut DIR) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn closedir(arg___dirp: *mut DIR) -> ::std::os::raw::c_int; + } + closedir(arg___dirp) + }) +} pub unsafe fn opendir(arg___name: *const ::std::os::raw::c_char) -> *mut DIR { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -23409,14 +23462,6 @@ pub unsafe fn fdopendir(arg___fd: ::std::os::raw::c_int) -> *mut DIR { fdopendir(arg___fd) }) } -pub unsafe fn closedir(arg___dirp: *mut DIR) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn closedir(arg___dirp: *mut DIR) -> ::std::os::raw::c_int; - } - closedir(arg___dirp) - }) -} pub unsafe fn readdir(arg___dirp: *mut DIR) -> *mut dirent { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -29941,6 +29986,7 @@ pub struct AlterTableCmd { pub def: *mut Node, pub behavior: DropBehavior, pub missing_ok: bool, + pub recurse: bool, } impl Default for AlterTableCmd { fn default() -> Self { @@ -37594,6 +37640,22 @@ pub unsafe fn LWLockHeldByMe(arg_lock: *mut LWLock) -> bool { LWLockHeldByMe(arg_lock) }) } +pub unsafe fn LWLockAnyHeldByMe( + arg_lock: *mut LWLock, + arg_nlocks: ::std::os::raw::c_int, + arg_stride: usize, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn LWLockAnyHeldByMe( + arg_lock: *mut LWLock, + arg_nlocks: ::std::os::raw::c_int, + arg_stride: usize, + ) -> bool; + } + LWLockAnyHeldByMe(arg_lock, arg_nlocks, arg_stride) + }) +} pub unsafe fn LWLockHeldByMeInMode(arg_lock: *mut LWLock, arg_mode: LWLockMode) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -50967,6 +51029,14 @@ pub unsafe fn recordDependencyOnCurrentExtension( recordDependencyOnCurrentExtension(arg_object, arg_isReplace) }) } +pub unsafe fn checkMembershipInCurrentExtension(arg_object: *const ObjectAddress) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn checkMembershipInCurrentExtension(arg_object: *const ObjectAddress); + } + checkMembershipInCurrentExtension(arg_object) + }) +} pub unsafe fn deleteDependencyRecordsFor( arg_classId: Oid, arg_objectId: Oid, @@ -55783,6 +55853,35 @@ pub unsafe fn renametrig(arg_stmt: *mut RenameStmt) -> ObjectAddress { renametrig(arg_stmt) }) } +pub unsafe fn EnableDisableTriggerNew( + arg_rel: Relation, + arg_tgname: *const ::std::os::raw::c_char, + arg_fires_when: ::std::os::raw::c_char, + arg_skip_system: bool, + arg_recurse: bool, + arg_lockmode: LOCKMODE, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn EnableDisableTriggerNew( + arg_rel: Relation, + arg_tgname: *const ::std::os::raw::c_char, + arg_fires_when: ::std::os::raw::c_char, + arg_skip_system: bool, + arg_recurse: bool, + arg_lockmode: LOCKMODE, + ); + } + EnableDisableTriggerNew( + arg_rel, + arg_tgname, + arg_fires_when, + arg_skip_system, + arg_recurse, + arg_lockmode, + ) + }) +} pub unsafe fn EnableDisableTrigger( arg_rel: Relation, arg_tgname: *const ::std::os::raw::c_char, @@ -98449,6 +98548,346 @@ pub unsafe fn SharedRecordTypmodRegistryAttach(arg_arg1: *mut SharedRecordTypmod SharedRecordTypmodRegistryAttach(arg_arg1) }) } +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct RangeType { + pub vl_len_: int32, + pub rangetypid: Oid, +} +#[repr(C)] +pub struct RangeBound { + pub val: Datum, + pub infinite: bool, + pub inclusive: bool, + pub lower: bool, +} +impl Default for RangeBound { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub unsafe fn range_contains_elem_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r: *mut RangeType, + arg_val: Datum, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_contains_elem_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r: *mut RangeType, + arg_val: Datum, + ) -> bool; + } + range_contains_elem_internal(arg_typcache, arg_r, arg_val) + }) +} +pub unsafe fn range_eq_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_eq_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_eq_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_ne_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_ne_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_ne_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_contains_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_contains_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_contains_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_contained_by_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_contained_by_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_contained_by_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_before_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_before_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_before_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_after_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_after_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_after_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_adjacent_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_adjacent_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_adjacent_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_overlaps_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_overlaps_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_overlaps_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_overleft_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_overleft_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_overleft_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_overright_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_overright_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> bool; + } + range_overright_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_get_typcache( + arg_fcinfo: FunctionCallInfo, + arg_rngtypid: Oid, +) -> *mut TypeCacheEntry { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_get_typcache( + arg_fcinfo: FunctionCallInfo, + arg_rngtypid: Oid, + ) -> *mut TypeCacheEntry; + } + range_get_typcache(arg_fcinfo, arg_rngtypid) + }) +} +pub unsafe fn range_serialize( + arg_typcache: *mut TypeCacheEntry, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: bool, +) -> *mut RangeType { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_serialize( + arg_typcache: *mut TypeCacheEntry, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: bool, + ) -> *mut RangeType; + } + range_serialize(arg_typcache, arg_lower, arg_upper, arg_empty) + }) +} +pub unsafe fn range_deserialize( + arg_typcache: *mut TypeCacheEntry, + arg_range: *mut RangeType, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: *mut bool, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_deserialize( + arg_typcache: *mut TypeCacheEntry, + arg_range: *mut RangeType, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: *mut bool, + ); + } + range_deserialize(arg_typcache, arg_range, arg_lower, arg_upper, arg_empty) + }) +} +pub unsafe fn range_get_flags(arg_range: *mut RangeType) -> ::std::os::raw::c_char { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_get_flags(arg_range: *mut RangeType) -> ::std::os::raw::c_char; + } + range_get_flags(arg_range) + }) +} +pub unsafe fn range_set_contain_empty(arg_range: *mut RangeType) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_set_contain_empty(arg_range: *mut RangeType); + } + range_set_contain_empty(arg_range) + }) +} +pub unsafe fn make_range( + arg_typcache: *mut TypeCacheEntry, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: bool, +) -> *mut RangeType { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn make_range( + arg_typcache: *mut TypeCacheEntry, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: bool, + ) -> *mut RangeType; + } + make_range(arg_typcache, arg_lower, arg_upper, arg_empty) + }) +} +pub unsafe fn range_cmp_bounds( + arg_typcache: *mut TypeCacheEntry, + arg_b1: *mut RangeBound, + arg_b2: *mut RangeBound, +) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_cmp_bounds( + arg_typcache: *mut TypeCacheEntry, + arg_b1: *mut RangeBound, + arg_b2: *mut RangeBound, + ) -> ::std::os::raw::c_int; + } + range_cmp_bounds(arg_typcache, arg_b1, arg_b2) + }) +} +pub unsafe fn range_cmp_bound_values( + arg_typcache: *mut TypeCacheEntry, + arg_b1: *mut RangeBound, + arg_b2: *mut RangeBound, +) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_cmp_bound_values( + arg_typcache: *mut TypeCacheEntry, + arg_b1: *mut RangeBound, + arg_b2: *mut RangeBound, + ) -> ::std::os::raw::c_int; + } + range_cmp_bound_values(arg_typcache, arg_b1, arg_b2) + }) +} +pub unsafe fn bounds_adjacent( + arg_typcache: *mut TypeCacheEntry, + arg_bound1: RangeBound, + arg_bound2: RangeBound, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn bounds_adjacent( + arg_typcache: *mut TypeCacheEntry, + arg_bound1: RangeBound, + arg_bound2: RangeBound, + ) -> bool; + } + bounds_adjacent(arg_typcache, arg_bound1, arg_bound2) + }) +} +pub unsafe fn make_empty_range(arg_typcache: *mut TypeCacheEntry) -> *mut RangeType { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn make_empty_range(arg_typcache: *mut TypeCacheEntry) -> *mut RangeType; + } + make_empty_range(arg_typcache) + }) +} pub type __builtin_va_list = [__va_list_tag; 1usize]; #[repr(C)] #[derive(Debug, Copy, Clone)] diff --git a/pgx-pg-sys/src/pg13.rs b/pgx-pg-sys/src/pg13.rs index 2f09c536a..80f64d720 100644 --- a/pgx-pg-sys/src/pg13.rs +++ b/pgx-pg-sys/src/pg13.rs @@ -179,7 +179,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 ; 106usize] = b" '--prefix=/home/atelier/.pgx/13.7/pgx-install' '--with-pgport=28813' '--enable-debug' '--enable-cassert'\0" ; +pub const CONFIGURE_ARGS : & [u8 ; 106usize] = b" '--prefix=/home/atelier/.pgx/13.8/pgx-install' '--with-pgport=28813' '--enable-debug' '--enable-cassert'\0" ; pub const DEF_PGPORT: u32 = 28813; pub const DEF_PGPORT_STR: &[u8; 6usize] = b"28813\0"; pub const ENABLE_THREAD_SAFETY: u32 = 1; @@ -319,19 +319,19 @@ pub const MAXIMUM_ALIGNOF: u32 = 8; pub const MEMSET_LOOP_LIMIT: u32 = 1024; pub const PACKAGE_BUGREPORT: &[u8; 32usize] = b"pgsql-bugs@lists.postgresql.org\0"; pub const PACKAGE_NAME: &[u8; 11usize] = b"PostgreSQL\0"; -pub const PACKAGE_STRING: &[u8; 16usize] = b"PostgreSQL 13.7\0"; +pub const PACKAGE_STRING: &[u8; 16usize] = b"PostgreSQL 13.8\0"; pub const PACKAGE_TARNAME: &[u8; 11usize] = b"postgresql\0"; pub const PACKAGE_URL: &[u8; 28usize] = b"https://www.postgresql.org/\0"; -pub const PACKAGE_VERSION: &[u8; 5usize] = b"13.7\0"; +pub const PACKAGE_VERSION: &[u8; 5usize] = b"13.8\0"; pub const PG_KRB_SRVNAM: &[u8; 9usize] = b"postgres\0"; pub const PG_MAJORVERSION: &[u8; 3usize] = b"13\0"; pub const PG_MAJORVERSION_NUM: u32 = 13; -pub const PG_MINORVERSION_NUM: u32 = 7; +pub const PG_MINORVERSION_NUM: u32 = 8; pub const PG_USE_STDBOOL: u32 = 1; -pub const PG_VERSION: &[u8; 5usize] = b"13.7\0"; -pub const PG_VERSION_NUM: u32 = 130007; +pub const PG_VERSION: &[u8; 5usize] = b"13.8\0"; +pub const PG_VERSION_NUM: u32 = 130008; pub const PG_VERSION_STR: &[u8; 77usize] = - b"PostgreSQL 13.7 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 12.1.0, 64-bit\0"; + b"PostgreSQL 13.8 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 12.2.0, 64-bit\0"; pub const RELSEG_SIZE: u32 = 131072; pub const SIZEOF_BOOL: u32 = 1; pub const SIZEOF_LONG: u32 = 8; @@ -400,7 +400,7 @@ pub const __STDC_IEC_60559_COMPLEX__: u32 = 201404; pub const __STDC_ISO_10646__: u32 = 201706; pub const __GNU_LIBRARY__: u32 = 6; pub const __GLIBC__: u32 = 2; -pub const __GLIBC_MINOR__: u32 = 35; +pub const __GLIBC_MINOR__: u32 = 36; pub const _SYS_CDEFS_H: u32 = 1; pub const __glibc_c99_flexarr_available: u32 = 1; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI: u32 = 0; @@ -902,6 +902,7 @@ pub const SOL_TLS: u32 = 282; pub const SOL_XDP: u32 = 283; pub const SOL_MPTCP: u32 = 284; pub const SOL_MCTP: u32 = 285; +pub const SOL_SMC: u32 = 286; pub const SOMAXCONN: u32 = 4096; pub const _BITS_SOCKADDR_H: u32 = 1; pub const _SS_SIZE: u32 = 128; @@ -991,6 +992,7 @@ pub const SO_BUSY_POLL_BUDGET: u32 = 70; pub const SO_NETNS_COOKIE: u32 = 71; pub const SO_BUF_LOCK: u32 = 72; pub const SO_RESERVE_MEM: u32 = 73; +pub const SO_TXREHASH: u32 = 74; pub const SO_TIMESTAMP: u32 = 29; pub const SO_TIMESTAMPNS: u32 = 35; pub const SO_TIMESTAMPING: u32 = 37; @@ -1184,7 +1186,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; 28usize] = b"postgres (PostgreSQL) 13.7\n\0"; +pub const PG_BACKEND_VERSIONSTR: &[u8; 28usize] = b"postgres (PostgreSQL) 13.8\n\0"; pub const EXE: &[u8; 1usize] = b"\0"; pub const DEVNULL: &[u8; 10usize] = b"/dev/null\0"; pub const USE_REPL_SNPRINTF: u32 = 1; @@ -2219,7 +2221,7 @@ pub const PROC_VACUUM_FOR_WRAPAROUND: u32 = 8; pub const PROC_IN_LOGICAL_DECODING: u32 = 16; pub const PROC_RESERVED: u32 = 32; pub const PROC_VACUUM_STATE_MASK: u32 = 14; -pub const PROC_COPYABLE_FLAGS: u32 = 2; +pub const PROC_XMIN_FLAGS: u32 = 2; pub const FP_LOCK_SLOTS_PER_BACKEND: u32 = 16; pub const INVALID_PGPROCNO: u32 = 2147483647; pub const DELAY_CHKPT_START: u32 = 1; @@ -2563,6 +2565,7 @@ pub const XACT_REPEATABLE_READ: u32 = 2; pub const XACT_SERIALIZABLE: u32 = 3; pub const XACT_FLAGS_ACCESSEDTEMPNAMESPACE: u32 = 1; pub const XACT_FLAGS_ACQUIREDACCESSEXCLUSIVELOCK: u32 = 2; +pub const XACT_FLAGS_NEEDIMMEDIATECOMMIT: u32 = 4; pub const XLOG_XACT_COMMIT: u32 = 0; pub const XLOG_XACT_PREPARE: u32 = 16; pub const XLOG_XACT_ABORT: u32 = 32; @@ -3128,6 +3131,24 @@ pub const TYPECACHE_DOMAIN_BASE_INFO: u32 = 4096; pub const TYPECACHE_DOMAIN_CONSTR_INFO: u32 = 8192; pub const TYPECACHE_HASH_EXTENDED_PROC: u32 = 16384; pub const TYPECACHE_HASH_EXTENDED_PROC_FINFO: u32 = 32768; +pub const RANGE_EMPTY: u32 = 1; +pub const RANGE_LB_INC: u32 = 2; +pub const RANGE_UB_INC: u32 = 4; +pub const RANGE_LB_INF: u32 = 8; +pub const RANGE_UB_INF: u32 = 16; +pub const RANGE_LB_NULL: u32 = 32; +pub const RANGE_UB_NULL: u32 = 64; +pub const RANGE_CONTAIN_EMPTY: u32 = 128; +pub const RANGESTRAT_BEFORE: u32 = 1; +pub const RANGESTRAT_OVERLEFT: u32 = 2; +pub const RANGESTRAT_OVERLAPS: u32 = 3; +pub const RANGESTRAT_OVERRIGHT: u32 = 4; +pub const RANGESTRAT_AFTER: u32 = 5; +pub const RANGESTRAT_ADJACENT: u32 = 6; +pub const RANGESTRAT_CONTAINS: u32 = 7; +pub const RANGESTRAT_CONTAINED_BY: u32 = 8; +pub const RANGESTRAT_CONTAINS_ELEM: u32 = 16; +pub const RANGESTRAT_EQ: u32 = 18; pub type Oid = ::std::os::raw::c_uint; pub type pg_int64 = ::std::os::raw::c_long; pub type va_list = __builtin_va_list; @@ -5359,6 +5380,30 @@ pub unsafe fn lcong48_r( lcong48_r(arg___param, arg___buffer) }) } +pub unsafe fn arc4random() -> __uint32_t { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn arc4random() -> __uint32_t; + } + arc4random() + }) +} +pub unsafe fn arc4random_buf(arg___buf: *mut ::std::os::raw::c_void, arg___size: usize) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn arc4random_buf(arg___buf: *mut ::std::os::raw::c_void, arg___size: usize); + } + arc4random_buf(arg___buf, arg___size) + }) +} +pub unsafe fn arc4random_uniform(arg___upper_bound: __uint32_t) -> __uint32_t { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn arc4random_uniform(arg___upper_bound: __uint32_t) -> __uint32_t; + } + arc4random_uniform(arg___upper_bound) + }) +} pub unsafe fn malloc(arg___size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -24489,6 +24534,14 @@ pub struct __dirstream { _unused: [u8; 0], } pub type DIR = __dirstream; +pub unsafe fn closedir(arg___dirp: *mut DIR) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn closedir(arg___dirp: *mut DIR) -> ::std::os::raw::c_int; + } + closedir(arg___dirp) + }) +} pub unsafe fn opendir(arg___name: *const ::std::os::raw::c_char) -> *mut DIR { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -24505,14 +24558,6 @@ pub unsafe fn fdopendir(arg___fd: ::std::os::raw::c_int) -> *mut DIR { fdopendir(arg___fd) }) } -pub unsafe fn closedir(arg___dirp: *mut DIR) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn closedir(arg___dirp: *mut DIR) -> ::std::os::raw::c_int; - } - closedir(arg___dirp) - }) -} pub unsafe fn readdir(arg___dirp: *mut DIR) -> *mut dirent { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -30821,6 +30866,7 @@ pub struct AlterTableCmd { pub def: *mut Node, pub behavior: DropBehavior, pub missing_ok: bool, + pub recurse: bool, } impl Default for AlterTableCmd { fn default() -> Self { @@ -38699,6 +38745,22 @@ pub unsafe fn LWLockHeldByMe(arg_lock: *mut LWLock) -> bool { LWLockHeldByMe(arg_lock) }) } +pub unsafe fn LWLockAnyHeldByMe( + arg_lock: *mut LWLock, + arg_nlocks: ::std::os::raw::c_int, + arg_stride: usize, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn LWLockAnyHeldByMe( + arg_lock: *mut LWLock, + arg_nlocks: ::std::os::raw::c_int, + arg_stride: usize, + ) -> bool; + } + LWLockAnyHeldByMe(arg_lock, arg_nlocks, arg_stride) + }) +} pub unsafe fn LWLockHeldByMeInMode(arg_lock: *mut LWLock, arg_mode: LWLockMode) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -51579,6 +51641,14 @@ pub unsafe fn recordDependencyOnCurrentExtension( recordDependencyOnCurrentExtension(arg_object, arg_isReplace) }) } +pub unsafe fn checkMembershipInCurrentExtension(arg_object: *const ObjectAddress) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn checkMembershipInCurrentExtension(arg_object: *const ObjectAddress); + } + checkMembershipInCurrentExtension(arg_object) + }) +} pub unsafe fn deleteDependencyRecordsFor( arg_classId: Oid, arg_objectId: Oid, @@ -56693,6 +56763,35 @@ pub unsafe fn renametrig(arg_stmt: *mut RenameStmt) -> ObjectAddress { renametrig(arg_stmt) }) } +pub unsafe fn EnableDisableTriggerNew( + arg_rel: Relation, + arg_tgname: *const ::std::os::raw::c_char, + arg_fires_when: ::std::os::raw::c_char, + arg_skip_system: bool, + arg_recurse: bool, + arg_lockmode: LOCKMODE, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn EnableDisableTriggerNew( + arg_rel: Relation, + arg_tgname: *const ::std::os::raw::c_char, + arg_fires_when: ::std::os::raw::c_char, + arg_skip_system: bool, + arg_recurse: bool, + arg_lockmode: LOCKMODE, + ); + } + EnableDisableTriggerNew( + arg_rel, + arg_tgname, + arg_fires_when, + arg_skip_system, + arg_recurse, + arg_lockmode, + ) + }) +} pub unsafe fn EnableDisableTrigger( arg_rel: Relation, arg_tgname: *const ::std::os::raw::c_char, @@ -100269,6 +100368,346 @@ pub unsafe fn SharedRecordTypmodRegistryAttach(arg_arg1: *mut SharedRecordTypmod SharedRecordTypmodRegistryAttach(arg_arg1) }) } +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct RangeType { + pub vl_len_: int32, + pub rangetypid: Oid, +} +#[repr(C)] +pub struct RangeBound { + pub val: Datum, + pub infinite: bool, + pub inclusive: bool, + pub lower: bool, +} +impl Default for RangeBound { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub unsafe fn range_contains_elem_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r: *const RangeType, + arg_val: Datum, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_contains_elem_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r: *const RangeType, + arg_val: Datum, + ) -> bool; + } + range_contains_elem_internal(arg_typcache, arg_r, arg_val) + }) +} +pub unsafe fn range_eq_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_eq_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, + ) -> bool; + } + range_eq_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_ne_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_ne_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, + ) -> bool; + } + range_ne_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_contains_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_contains_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, + ) -> bool; + } + range_contains_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_contained_by_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_contained_by_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, + ) -> bool; + } + range_contained_by_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_before_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_before_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, + ) -> bool; + } + range_before_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_after_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_after_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, + ) -> bool; + } + range_after_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_adjacent_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_adjacent_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, + ) -> bool; + } + range_adjacent_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_overlaps_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_overlaps_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, + ) -> bool; + } + range_overlaps_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_overleft_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_overleft_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, + ) -> bool; + } + range_overleft_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_overright_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_overright_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, + ) -> bool; + } + range_overright_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_get_typcache( + arg_fcinfo: FunctionCallInfo, + arg_rngtypid: Oid, +) -> *mut TypeCacheEntry { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_get_typcache( + arg_fcinfo: FunctionCallInfo, + arg_rngtypid: Oid, + ) -> *mut TypeCacheEntry; + } + range_get_typcache(arg_fcinfo, arg_rngtypid) + }) +} +pub unsafe fn range_serialize( + arg_typcache: *mut TypeCacheEntry, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: bool, +) -> *mut RangeType { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_serialize( + arg_typcache: *mut TypeCacheEntry, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: bool, + ) -> *mut RangeType; + } + range_serialize(arg_typcache, arg_lower, arg_upper, arg_empty) + }) +} +pub unsafe fn range_deserialize( + arg_typcache: *mut TypeCacheEntry, + arg_range: *const RangeType, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: *mut bool, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_deserialize( + arg_typcache: *mut TypeCacheEntry, + arg_range: *const RangeType, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: *mut bool, + ); + } + range_deserialize(arg_typcache, arg_range, arg_lower, arg_upper, arg_empty) + }) +} +pub unsafe fn range_get_flags(arg_range: *const RangeType) -> ::std::os::raw::c_char { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_get_flags(arg_range: *const RangeType) -> ::std::os::raw::c_char; + } + range_get_flags(arg_range) + }) +} +pub unsafe fn range_set_contain_empty(arg_range: *mut RangeType) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_set_contain_empty(arg_range: *mut RangeType); + } + range_set_contain_empty(arg_range) + }) +} +pub unsafe fn make_range( + arg_typcache: *mut TypeCacheEntry, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: bool, +) -> *mut RangeType { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn make_range( + arg_typcache: *mut TypeCacheEntry, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: bool, + ) -> *mut RangeType; + } + make_range(arg_typcache, arg_lower, arg_upper, arg_empty) + }) +} +pub unsafe fn range_cmp_bounds( + arg_typcache: *mut TypeCacheEntry, + arg_b1: *const RangeBound, + arg_b2: *const RangeBound, +) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_cmp_bounds( + arg_typcache: *mut TypeCacheEntry, + arg_b1: *const RangeBound, + arg_b2: *const RangeBound, + ) -> ::std::os::raw::c_int; + } + range_cmp_bounds(arg_typcache, arg_b1, arg_b2) + }) +} +pub unsafe fn range_cmp_bound_values( + arg_typcache: *mut TypeCacheEntry, + arg_b1: *const RangeBound, + arg_b2: *const RangeBound, +) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_cmp_bound_values( + arg_typcache: *mut TypeCacheEntry, + arg_b1: *const RangeBound, + arg_b2: *const RangeBound, + ) -> ::std::os::raw::c_int; + } + range_cmp_bound_values(arg_typcache, arg_b1, arg_b2) + }) +} +pub unsafe fn bounds_adjacent( + arg_typcache: *mut TypeCacheEntry, + arg_bound1: RangeBound, + arg_bound2: RangeBound, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn bounds_adjacent( + arg_typcache: *mut TypeCacheEntry, + arg_bound1: RangeBound, + arg_bound2: RangeBound, + ) -> bool; + } + bounds_adjacent(arg_typcache, arg_bound1, arg_bound2) + }) +} +pub unsafe fn make_empty_range(arg_typcache: *mut TypeCacheEntry) -> *mut RangeType { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn make_empty_range(arg_typcache: *mut TypeCacheEntry) -> *mut RangeType; + } + make_empty_range(arg_typcache) + }) +} pub type __builtin_va_list = [__va_list_tag; 1usize]; #[repr(C)] #[derive(Debug, Copy, Clone)] diff --git a/pgx-pg-sys/src/pg14.rs b/pgx-pg-sys/src/pg14.rs index ce09c2961..c3a1ac2a0 100644 --- a/pgx-pg-sys/src/pg14.rs +++ b/pgx-pg-sys/src/pg14.rs @@ -179,7 +179,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 ; 106usize] = b" '--prefix=/home/atelier/.pgx/14.3/pgx-install' '--with-pgport=28814' '--enable-debug' '--enable-cassert'\0" ; +pub const CONFIGURE_ARGS : & [u8 ; 106usize] = b" '--prefix=/home/atelier/.pgx/14.5/pgx-install' '--with-pgport=28814' '--enable-debug' '--enable-cassert'\0" ; pub const DEF_PGPORT: u32 = 28814; pub const DEF_PGPORT_STR: &[u8; 6usize] = b"28814\0"; pub const ENABLE_THREAD_SAFETY: u32 = 1; @@ -327,19 +327,19 @@ pub const MAXIMUM_ALIGNOF: u32 = 8; pub const MEMSET_LOOP_LIMIT: u32 = 1024; pub const PACKAGE_BUGREPORT: &[u8; 32usize] = b"pgsql-bugs@lists.postgresql.org\0"; pub const PACKAGE_NAME: &[u8; 11usize] = b"PostgreSQL\0"; -pub const PACKAGE_STRING: &[u8; 16usize] = b"PostgreSQL 14.3\0"; +pub const PACKAGE_STRING: &[u8; 16usize] = b"PostgreSQL 14.5\0"; pub const PACKAGE_TARNAME: &[u8; 11usize] = b"postgresql\0"; pub const PACKAGE_URL: &[u8; 28usize] = b"https://www.postgresql.org/\0"; -pub const PACKAGE_VERSION: &[u8; 5usize] = b"14.3\0"; +pub const PACKAGE_VERSION: &[u8; 5usize] = b"14.5\0"; pub const PG_KRB_SRVNAM: &[u8; 9usize] = b"postgres\0"; pub const PG_MAJORVERSION: &[u8; 3usize] = b"14\0"; pub const PG_MAJORVERSION_NUM: u32 = 14; -pub const PG_MINORVERSION_NUM: u32 = 3; +pub const PG_MINORVERSION_NUM: u32 = 5; pub const PG_USE_STDBOOL: u32 = 1; -pub const PG_VERSION: &[u8; 5usize] = b"14.3\0"; -pub const PG_VERSION_NUM: u32 = 140003; +pub const PG_VERSION: &[u8; 5usize] = b"14.5\0"; +pub const PG_VERSION_NUM: u32 = 140005; pub const PG_VERSION_STR: &[u8; 77usize] = - b"PostgreSQL 14.3 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 12.1.0, 64-bit\0"; + b"PostgreSQL 14.5 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 12.2.0, 64-bit\0"; pub const RELSEG_SIZE: u32 = 131072; pub const SIZEOF_BOOL: u32 = 1; pub const SIZEOF_LONG: u32 = 8; @@ -407,7 +407,7 @@ pub const __STDC_IEC_60559_COMPLEX__: u32 = 201404; pub const __STDC_ISO_10646__: u32 = 201706; pub const __GNU_LIBRARY__: u32 = 6; pub const __GLIBC__: u32 = 2; -pub const __GLIBC_MINOR__: u32 = 35; +pub const __GLIBC_MINOR__: u32 = 36; pub const _SYS_CDEFS_H: u32 = 1; pub const __glibc_c99_flexarr_available: u32 = 1; pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI: u32 = 0; @@ -907,6 +907,7 @@ pub const SOL_TLS: u32 = 282; pub const SOL_XDP: u32 = 283; pub const SOL_MPTCP: u32 = 284; pub const SOL_MCTP: u32 = 285; +pub const SOL_SMC: u32 = 286; pub const SOMAXCONN: u32 = 4096; pub const _BITS_SOCKADDR_H: u32 = 1; pub const _SS_SIZE: u32 = 128; @@ -996,6 +997,7 @@ pub const SO_BUSY_POLL_BUDGET: u32 = 70; pub const SO_NETNS_COOKIE: u32 = 71; pub const SO_BUF_LOCK: u32 = 72; pub const SO_RESERVE_MEM: u32 = 73; +pub const SO_TXREHASH: u32 = 74; pub const SO_TIMESTAMP: u32 = 29; pub const SO_TIMESTAMPNS: u32 = 35; pub const SO_TIMESTAMPING: u32 = 37; @@ -1189,7 +1191,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; 28usize] = b"postgres (PostgreSQL) 14.3\n\0"; +pub const PG_BACKEND_VERSIONSTR: &[u8; 28usize] = b"postgres (PostgreSQL) 14.5\n\0"; pub const EXE: &[u8; 1usize] = b"\0"; pub const DEVNULL: &[u8; 10usize] = b"/dev/null\0"; pub const USE_REPL_SNPRINTF: u32 = 1; @@ -2313,6 +2315,7 @@ pub const XACT_REPEATABLE_READ: u32 = 2; pub const XACT_SERIALIZABLE: u32 = 3; pub const XACT_FLAGS_ACCESSEDTEMPNAMESPACE: u32 = 1; pub const XACT_FLAGS_ACQUIREDACCESSEXCLUSIVELOCK: u32 = 2; +pub const XACT_FLAGS_NEEDIMMEDIATECOMMIT: u32 = 4; pub const XLOG_XACT_COMMIT: u32 = 0; pub const XLOG_XACT_PREPARE: u32 = 16; pub const XLOG_XACT_ABORT: u32 = 32; @@ -2916,7 +2919,7 @@ pub const PROC_IN_SAFE_IC: u32 = 4; pub const PROC_VACUUM_FOR_WRAPAROUND: u32 = 8; pub const PROC_IN_LOGICAL_DECODING: u32 = 16; pub const PROC_VACUUM_STATE_MASK: u32 = 14; -pub const PROC_COPYABLE_FLAGS: u32 = 6; +pub const PROC_XMIN_FLAGS: u32 = 6; pub const FP_LOCK_SLOTS_PER_BACKEND: u32 = 16; pub const INVALID_PGPROCNO: u32 = 2147483647; pub const DELAY_CHKPT_START: u32 = 1; @@ -3238,6 +3241,25 @@ pub const TYPECACHE_DOMAIN_CONSTR_INFO: u32 = 8192; pub const TYPECACHE_HASH_EXTENDED_PROC: u32 = 16384; pub const TYPECACHE_HASH_EXTENDED_PROC_FINFO: u32 = 32768; pub const TYPECACHE_MULTIRANGE_INFO: u32 = 65536; +pub const RANGE_EMPTY_LITERAL: &[u8; 6usize] = b"empty\0"; +pub const RANGE_EMPTY: u32 = 1; +pub const RANGE_LB_INC: u32 = 2; +pub const RANGE_UB_INC: u32 = 4; +pub const RANGE_LB_INF: u32 = 8; +pub const RANGE_UB_INF: u32 = 16; +pub const RANGE_LB_NULL: u32 = 32; +pub const RANGE_UB_NULL: u32 = 64; +pub const RANGE_CONTAIN_EMPTY: u32 = 128; +pub const RANGESTRAT_BEFORE: u32 = 1; +pub const RANGESTRAT_OVERLEFT: u32 = 2; +pub const RANGESTRAT_OVERLAPS: u32 = 3; +pub const RANGESTRAT_OVERRIGHT: u32 = 4; +pub const RANGESTRAT_AFTER: u32 = 5; +pub const RANGESTRAT_ADJACENT: u32 = 6; +pub const RANGESTRAT_CONTAINS: u32 = 7; +pub const RANGESTRAT_CONTAINED_BY: u32 = 8; +pub const RANGESTRAT_CONTAINS_ELEM: u32 = 16; +pub const RANGESTRAT_EQ: u32 = 18; pub type Oid = ::std::os::raw::c_uint; pub type pg_int64 = ::std::os::raw::c_long; pub type va_list = __builtin_va_list; @@ -5469,6 +5491,30 @@ pub unsafe fn lcong48_r( lcong48_r(arg___param, arg___buffer) }) } +pub unsafe fn arc4random() -> __uint32_t { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn arc4random() -> __uint32_t; + } + arc4random() + }) +} +pub unsafe fn arc4random_buf(arg___buf: *mut ::std::os::raw::c_void, arg___size: usize) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn arc4random_buf(arg___buf: *mut ::std::os::raw::c_void, arg___size: usize); + } + arc4random_buf(arg___buf, arg___size) + }) +} +pub unsafe fn arc4random_uniform(arg___upper_bound: __uint32_t) -> __uint32_t { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn arc4random_uniform(arg___upper_bound: __uint32_t) -> __uint32_t; + } + arc4random_uniform(arg___upper_bound) + }) +} pub unsafe fn malloc(arg___size: ::std::os::raw::c_ulong) -> *mut ::std::os::raw::c_void { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -14157,6 +14203,26 @@ pub unsafe fn qsort_arg( qsort_arg(arg_base, arg_nel, arg_elsize, arg_cmp, arg_arg) }) } +pub unsafe fn qsort_interruptible( + arg_base: *mut ::std::os::raw::c_void, + arg_nel: usize, + arg_elsize: usize, + arg_cmp: qsort_arg_comparator, + arg_arg: *mut ::std::os::raw::c_void, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn qsort_interruptible( + arg_base: *mut ::std::os::raw::c_void, + arg_nel: usize, + arg_elsize: usize, + arg_cmp: qsort_arg_comparator, + arg_arg: *mut ::std::os::raw::c_void, + ); + } + qsort_interruptible(arg_base, arg_nel, arg_elsize, arg_cmp, arg_arg) + }) +} pub unsafe fn bsearch_arg( arg_key: *const ::std::os::raw::c_void, arg_base: *const ::std::os::raw::c_void, @@ -24964,6 +25030,14 @@ pub struct __dirstream { _unused: [u8; 0], } pub type DIR = __dirstream; +pub unsafe fn closedir(arg___dirp: *mut DIR) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn closedir(arg___dirp: *mut DIR) -> ::std::os::raw::c_int; + } + closedir(arg___dirp) + }) +} pub unsafe fn opendir(arg___name: *const ::std::os::raw::c_char) -> *mut DIR { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -24980,14 +25054,6 @@ pub unsafe fn fdopendir(arg___fd: ::std::os::raw::c_int) -> *mut DIR { fdopendir(arg___fd) }) } -pub unsafe fn closedir(arg___dirp: *mut DIR) -> ::std::os::raw::c_int { - crate::submodules::setjmp::pg_guard_ffi_boundary(move || { - extern "C" { - fn closedir(arg___dirp: *mut DIR) -> ::std::os::raw::c_int; - } - closedir(arg___dirp) - }) -} pub unsafe fn readdir(arg___dirp: *mut DIR) -> *mut dirent { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -31596,6 +31662,7 @@ pub struct AlterTableCmd { pub def: *mut Node, pub behavior: DropBehavior, pub missing_ok: bool, + pub recurse: bool, } impl Default for AlterTableCmd { fn default() -> Self { @@ -49302,6 +49369,22 @@ pub unsafe fn LWLockHeldByMe(arg_lock: *mut LWLock) -> bool { LWLockHeldByMe(arg_lock) }) } +pub unsafe fn LWLockAnyHeldByMe( + arg_lock: *mut LWLock, + arg_nlocks: ::std::os::raw::c_int, + arg_stride: usize, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn LWLockAnyHeldByMe( + arg_lock: *mut LWLock, + arg_nlocks: ::std::os::raw::c_int, + arg_stride: usize, + ) -> bool; + } + LWLockAnyHeldByMe(arg_lock, arg_nlocks, arg_stride) + }) +} pub unsafe fn LWLockHeldByMeInMode(arg_lock: *mut LWLock, arg_mode: LWLockMode) -> bool { crate::submodules::setjmp::pg_guard_ffi_boundary(move || { extern "C" { @@ -51577,6 +51660,14 @@ pub unsafe fn recordDependencyOnCurrentExtension( recordDependencyOnCurrentExtension(arg_object, arg_isReplace) }) } +pub unsafe fn checkMembershipInCurrentExtension(arg_object: *const ObjectAddress) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn checkMembershipInCurrentExtension(arg_object: *const ObjectAddress); + } + checkMembershipInCurrentExtension(arg_object) + }) +} pub unsafe fn deleteDependencyRecordsFor( arg_classId: Oid, arg_objectId: Oid, @@ -56573,6 +56664,35 @@ pub unsafe fn renametrig(arg_stmt: *mut RenameStmt) -> ObjectAddress { renametrig(arg_stmt) }) } +pub unsafe fn EnableDisableTriggerNew( + arg_rel: Relation, + arg_tgname: *const ::std::os::raw::c_char, + arg_fires_when: ::std::os::raw::c_char, + arg_skip_system: bool, + arg_recurse: bool, + arg_lockmode: LOCKMODE, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn EnableDisableTriggerNew( + arg_rel: Relation, + arg_tgname: *const ::std::os::raw::c_char, + arg_fires_when: ::std::os::raw::c_char, + arg_skip_system: bool, + arg_recurse: bool, + arg_lockmode: LOCKMODE, + ); + } + EnableDisableTriggerNew( + arg_rel, + arg_tgname, + arg_fires_when, + arg_skip_system, + arg_recurse, + arg_lockmode, + ) + }) +} pub unsafe fn EnableDisableTrigger( arg_rel: Relation, arg_tgname: *const ::std::os::raw::c_char, @@ -103895,6 +104015,432 @@ pub unsafe fn SharedRecordTypmodRegistryAttach(arg_arg1: *mut SharedRecordTypmod SharedRecordTypmodRegistryAttach(arg_arg1) }) } +#[repr(C)] +#[derive(Debug, Default, Copy, Clone)] +pub struct RangeType { + pub vl_len_: int32, + pub rangetypid: Oid, +} +#[repr(C)] +pub struct RangeBound { + pub val: Datum, + pub infinite: bool, + pub inclusive: bool, + pub lower: bool, +} +impl Default for RangeBound { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +pub unsafe fn range_contains_elem_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r: *const RangeType, + arg_val: Datum, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_contains_elem_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r: *const RangeType, + arg_val: Datum, + ) -> bool; + } + range_contains_elem_internal(arg_typcache, arg_r, arg_val) + }) +} +pub unsafe fn range_eq_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_eq_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, + ) -> bool; + } + range_eq_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_ne_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_ne_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, + ) -> bool; + } + range_ne_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_contains_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_contains_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, + ) -> bool; + } + range_contains_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_contained_by_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_contained_by_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, + ) -> bool; + } + range_contained_by_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_before_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_before_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, + ) -> bool; + } + range_before_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_after_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_after_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, + ) -> bool; + } + range_after_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_adjacent_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_adjacent_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, + ) -> bool; + } + range_adjacent_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_overlaps_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_overlaps_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, + ) -> bool; + } + range_overlaps_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_overleft_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_overleft_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, + ) -> bool; + } + range_overleft_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_overright_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_overright_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, + ) -> bool; + } + range_overright_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_union_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + arg_strict: bool, +) -> *mut RangeType { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_union_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + arg_strict: bool, + ) -> *mut RangeType; + } + range_union_internal(arg_typcache, arg_r1, arg_r2, arg_strict) + }) +} +pub unsafe fn range_minus_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, +) -> *mut RangeType { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_minus_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *mut RangeType, + arg_r2: *mut RangeType, + ) -> *mut RangeType; + } + range_minus_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_intersect_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, +) -> *mut RangeType { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_intersect_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, + ) -> *mut RangeType; + } + range_intersect_internal(arg_typcache, arg_r1, arg_r2) + }) +} +pub unsafe fn range_get_typcache( + arg_fcinfo: FunctionCallInfo, + arg_rngtypid: Oid, +) -> *mut TypeCacheEntry { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_get_typcache( + arg_fcinfo: FunctionCallInfo, + arg_rngtypid: Oid, + ) -> *mut TypeCacheEntry; + } + range_get_typcache(arg_fcinfo, arg_rngtypid) + }) +} +pub unsafe fn range_serialize( + arg_typcache: *mut TypeCacheEntry, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: bool, +) -> *mut RangeType { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_serialize( + arg_typcache: *mut TypeCacheEntry, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: bool, + ) -> *mut RangeType; + } + range_serialize(arg_typcache, arg_lower, arg_upper, arg_empty) + }) +} +pub unsafe fn range_deserialize( + arg_typcache: *mut TypeCacheEntry, + arg_range: *const RangeType, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: *mut bool, +) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_deserialize( + arg_typcache: *mut TypeCacheEntry, + arg_range: *const RangeType, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: *mut bool, + ); + } + range_deserialize(arg_typcache, arg_range, arg_lower, arg_upper, arg_empty) + }) +} +pub unsafe fn range_get_flags(arg_range: *const RangeType) -> ::std::os::raw::c_char { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_get_flags(arg_range: *const RangeType) -> ::std::os::raw::c_char; + } + range_get_flags(arg_range) + }) +} +pub unsafe fn range_set_contain_empty(arg_range: *mut RangeType) { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_set_contain_empty(arg_range: *mut RangeType); + } + range_set_contain_empty(arg_range) + }) +} +pub unsafe fn make_range( + arg_typcache: *mut TypeCacheEntry, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: bool, +) -> *mut RangeType { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn make_range( + arg_typcache: *mut TypeCacheEntry, + arg_lower: *mut RangeBound, + arg_upper: *mut RangeBound, + arg_empty: bool, + ) -> *mut RangeType; + } + make_range(arg_typcache, arg_lower, arg_upper, arg_empty) + }) +} +pub unsafe fn range_cmp_bounds( + arg_typcache: *mut TypeCacheEntry, + arg_b1: *const RangeBound, + arg_b2: *const RangeBound, +) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_cmp_bounds( + arg_typcache: *mut TypeCacheEntry, + arg_b1: *const RangeBound, + arg_b2: *const RangeBound, + ) -> ::std::os::raw::c_int; + } + range_cmp_bounds(arg_typcache, arg_b1, arg_b2) + }) +} +pub unsafe fn range_cmp_bound_values( + arg_typcache: *mut TypeCacheEntry, + arg_b1: *const RangeBound, + arg_b2: *const RangeBound, +) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_cmp_bound_values( + arg_typcache: *mut TypeCacheEntry, + arg_b1: *const RangeBound, + arg_b2: *const RangeBound, + ) -> ::std::os::raw::c_int; + } + range_cmp_bound_values(arg_typcache, arg_b1, arg_b2) + }) +} +pub unsafe fn range_compare( + arg_key1: *const ::std::os::raw::c_void, + arg_key2: *const ::std::os::raw::c_void, + arg_arg: *mut ::std::os::raw::c_void, +) -> ::std::os::raw::c_int { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_compare( + arg_key1: *const ::std::os::raw::c_void, + arg_key2: *const ::std::os::raw::c_void, + arg_arg: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; + } + range_compare(arg_key1, arg_key2, arg_arg) + }) +} +pub unsafe fn bounds_adjacent( + arg_typcache: *mut TypeCacheEntry, + arg_bound1: RangeBound, + arg_bound2: RangeBound, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn bounds_adjacent( + arg_typcache: *mut TypeCacheEntry, + arg_bound1: RangeBound, + arg_bound2: RangeBound, + ) -> bool; + } + bounds_adjacent(arg_typcache, arg_bound1, arg_bound2) + }) +} +pub unsafe fn make_empty_range(arg_typcache: *mut TypeCacheEntry) -> *mut RangeType { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn make_empty_range(arg_typcache: *mut TypeCacheEntry) -> *mut RangeType; + } + make_empty_range(arg_typcache) + }) +} +pub unsafe fn range_split_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, + arg_output1: *mut *mut RangeType, + arg_output2: *mut *mut RangeType, +) -> bool { + crate::submodules::setjmp::pg_guard_ffi_boundary(move || { + extern "C" { + fn range_split_internal( + arg_typcache: *mut TypeCacheEntry, + arg_r1: *const RangeType, + arg_r2: *const RangeType, + arg_output1: *mut *mut RangeType, + arg_output2: *mut *mut RangeType, + ) -> bool; + } + range_split_internal(arg_typcache, arg_r1, arg_r2, arg_output1, arg_output2) + }) +} pub type __builtin_va_list = [__va_list_tag; 1usize]; #[repr(C)] #[derive(Debug, Copy, Clone)] diff --git a/pgx-tests/Cargo.toml b/pgx-tests/Cargo.toml index a3b40a78f..755efc750 100644 --- a/pgx-tests/Cargo.toml +++ b/pgx-tests/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pgx-tests" -version = "0.5.0-beta.0" +version = "0.5.0-beta.1" authors = ["ZomboDB, LLC "] license = "MIT" description = "Test framework for 'pgx'-based Postgres extensions" @@ -32,18 +32,18 @@ rustc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs"] [dependencies] -owo-colors = "3.4.0" -once_cell = "1.10.0" -libc = "0.2.126" -pgx-macros = { path = "../pgx-macros", version= "=0.5.0-beta.0" } -pgx-pg-config = { path = "../pgx-pg-config", version= "=0.5.0-beta.0" } -pgx-utils = { path = "../pgx-utils", version= "=0.5.0-beta.0" } -postgres = "0.19.3" -regex = "1.5.5" -serde = "1.0.137" -serde_json = "1.0.81" +owo-colors = "3.5.0" +once_cell = "1.15.0" +libc = "0.2.133" +pgx-macros = { path = "../pgx-macros", version = "=0.5.0-beta.1" } +pgx-pg-config = { path = "../pgx-pg-config", version = "=0.5.0-beta.1" } +pgx-utils = { path = "../pgx-utils", version = "=0.5.0-beta.1" } +postgres = "0.19.4" +regex = "1.6.0" +serde = "1.0.145" +serde_json = "1.0.85" shutdown_hooks = "0.1.0" -time = "0.3.9" +time = "0.3.14" eyre = "0.6.8" thiserror = "1.0" @@ -51,4 +51,4 @@ thiserror = "1.0" path = "../pgx" default-features = false features = [ "time-crate" ] # testing purposes -version= "=0.5.0-beta.0" +version = "=0.5.0-beta.1" diff --git a/pgx-utils/Cargo.toml b/pgx-utils/Cargo.toml index b1a7b6bd8..49ef35b2d 100644 --- a/pgx-utils/Cargo.toml +++ b/pgx-utils/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pgx-utils" -version = "0.5.0-beta.0" +version = "0.5.0-beta.1" authors = ["ZomboDB, LLC "] license = "MIT" description = "Utility functions for 'pgx'" @@ -17,17 +17,17 @@ cstr_core = "0.2" atty = "0.2.14" convert_case = "0.5.0" eyre = "0.6.8" -owo-colors = "3.4.0" -petgraph = "0.6.0" -proc-macro2 = { version = "1.0.39", features = [ "span-locations" ] } -quote = "1.0.18" -regex = "1.5.5" -serde = { version = "1.0.137", features = [ "derive" ] } -serde_derive = "1.0.137" -serde_json = "1.0.81" -syn = { version = "1.0.95", features = [ "extra-traits", "full", "fold", "parsing" ] } +owo-colors = "3.5.0" +petgraph = "0.6.2" +proc-macro2 = { version = "1.0.44", features = [ "span-locations" ] } +quote = "1.0.21" +regex = "1.6.0" +serde = { version = "1.0.145", features = [ "derive" ] } +serde_derive = "1.0.145" +serde_json = "1.0.85" +syn = { version = "1.0.101", features = [ "extra-traits", "full", "fold", "parsing" ] } syntect = { version = "5.0.0", default-features = false, features = ["default-fancy"] } unescape = "0.1.0" -tracing = "0.1.34" +tracing = "0.1.36" tracing-error = "0.2.0" -tracing-subscriber = { version = "0.3.11", features = [ "env-filter" ] } +tracing-subscriber = { version = "0.3.15", features = [ "env-filter" ] } diff --git a/pgx/Cargo.toml b/pgx/Cargo.toml index 0330ac702..44723a084 100644 --- a/pgx/Cargo.toml +++ b/pgx/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pgx" -version = "0.5.0-beta.0" +version = "0.5.0-beta.1" authors = ["ZomboDB, LLC "] license = "MIT" description = "pgx: A Rust framework for creating Postgres extensions" @@ -34,31 +34,31 @@ no-default-features = true rustc-args = ["--cfg", "docsrs"] [dependencies] -pgx-macros = { path = "../pgx-macros/", version = "=0.5.0-beta.0" } -pgx-pg-sys = { path = "../pgx-pg-sys", version = "=0.5.0-beta.0" } -pgx-utils = { path = "../pgx-utils/", version = "=0.5.0-beta.0" } +pgx-macros = { path = "../pgx-macros/", version = "=0.5.0-beta.1" } +pgx-pg-sys = { path = "../pgx-pg-sys", version = "=0.5.0-beta.1" } +pgx-utils = { path = "../pgx-utils/", version = "=0.5.0-beta.1" } # used to internally impl things -once_cell = "1.10.0" # polyfill until std::lazy::OnceCell stabilizes -quote = "1.0.18" # necessary for pgx's SQL generation +once_cell = "1.15.0" # polyfill until std::lazy::OnceCell stabilizes +quote = "1.0.21" # necessary for pgx's SQL generation seq-macro = "0.3" # impls loops in macros -uuid = { version = "1.0.0", features = [ "v4" ] } # PgLwLock and shmem +uuid = { version = "1.1.2", features = [ "v4" ] } # PgLwLock and shmem # error handling and logging eyre = "0.6.8" thiserror = "1.0" -tracing = "0.1.34" +tracing = "0.1.36" tracing-error = "0.2.0" # exposed in public API atomic-traits = "0.3.0" # PgAtomic and shmem init bitflags = "1.3.2" # BackgroundWorker bitvec = "1.0" # processing array nullbitmaps -cstr_core = "0.2.5" # no std compat -heapless = "0.7.13" # shmem and PgLwLock -libc = "0.2.126" # FFI type compat +cstr_core = "0.2.6" # no std compat +heapless = "0.7.16" # shmem and PgLwLock +libc = "0.2.133" # FFI type compat seahash = "4.1.0" # derive(PostgresHash) -serde = { version = "1.0.137", features = [ "derive" ] } # impls on pub types +serde = { version = "1.0.145", features = [ "derive" ] } # impls on pub types serde_cbor = "0.11.2" # derive(PostgresType) -serde_json = "1.0.81" # everything JSON -time = { version = "0.3.9", features = ["formatting", "parsing", "alloc", "macros"] } # TODO(0.6.0): add `optional = true` +serde_json = "1.0.85" # everything JSON +time = { version = "0.3.14", features = ["formatting", "parsing", "alloc", "macros"] } # TODO(0.6.0): add `optional = true`