diff --git a/Cargo.lock b/Cargo.lock index bcbbebb0f..2403298ac 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -58,15 +58,15 @@ dependencies = [ [[package]] name = "anstyle" -version = "1.0.0" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41ed9a86bf92ae6580e0a31281f65a1b1d867c0cc68d5346e2ae128dddfa6a7d" +checksum = "3a30da5c5f2d5e72842e00bcb57657162cdabef0931f40e2deb9b4140440cecd" [[package]] name = "anstyle-parse" -version = "0.2.0" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e765fd216e48e067936442276d1d57399e37bce53c264d6fefbe298080cb57ee" +checksum = "938874ff5980b03a87c5524b3ae5b59cf99b1d6bc836848df7bc5ada9643c333" dependencies = [ "utf8parse", ] @@ -178,12 +178,6 @@ dependencies = [ "ureq", ] -[[package]] -name = "base64" -version = "0.13.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8" - [[package]] name = "base64" version = "0.21.2" @@ -209,17 +203,16 @@ dependencies = [ [[package]] name = "bindgen" -version = "0.65.1" +version = "0.66.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cfdf7b466f9a4903edc73f95d6d2bcd5baf8ae620638762244d3f60143643cc5" +checksum = "f2b84e06fc203107bfbad243f4aba2af864eb7db3b1cf46ea0a023b0b433d2a7" dependencies = [ - "bitflags 1.3.2", + "bitflags 2.3.2", "cexpr", "clang-sys", "lazy_static", "lazycell", "peeking_take_while", - "prettyplease", "proc-macro2", "quote", "regex", @@ -251,9 +244,9 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] name = "bitflags" -version = "2.3.1" +version = "2.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6776fc96284a0bb647b615056fc496d1fe1644a7ab01829818a6d91cae888b84" +checksum = "6dbe3c979c178231552ecba20214a8272df4e09f232a87aef4320cf06539aded" [[package]] name = "bitvec" @@ -314,7 +307,7 @@ dependencies = [ [[package]] name = "cargo-pgrx" -version = "0.9.5" +version = "0.9.6" dependencies = [ "atty", "cargo_metadata", @@ -420,9 +413,9 @@ dependencies = [ [[package]] name = "clap" -version = "4.3.3" +version = "4.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca8f255e4b8027970e78db75e78831229c9815fdbfa67eb1a1b777a62e24b4a0" +checksum = "2686c4115cb0810d9a984776e197823d08ec94f176549a89a9efded477c456dc" dependencies = [ "clap_builder", "clap_derive", @@ -442,9 +435,9 @@ dependencies = [ [[package]] name = "clap_builder" -version = "4.3.3" +version = "4.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "acd4f3c17c83b0ba34ffbc4f8bbd74f079413f747f84a6f89292f138057e36ab" +checksum = "2e53afce1efce6ed1f633cf0e57612fe51db54a1ee4fd8f8503d078fe02d69ae" dependencies = [ "anstream", "anstyle", @@ -542,9 +535,9 @@ checksum = "e496a50fda8aacccc86d7529e2c1e0892dbd0f898a6b5645b5561b89c3210efa" [[package]] name = "cpufeatures" -version = "0.2.7" +version = "0.2.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3e4c1eaa2012c47becbbad2ab175484c2a84d1185b566fb2cc5b8707343dfe58" +checksum = "03e69e28e9f7f77debdedbaafa2866e1de9ba56df55a8bd7cfc724c25a09987c" dependencies = [ "libc", ] @@ -587,22 +580,22 @@ dependencies = [ [[package]] name = "crossbeam-epoch" -version = "0.9.14" +version = "0.9.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46bd5f3f85273295a9d14aedfb86f6aadbff6d8f5295c4a9edb08e819dcf5695" +checksum = "ae211234986c545741a7dc064309f67ee1e5ad243d0e48335adc0484d960bcc7" dependencies = [ "autocfg", "cfg-if", "crossbeam-utils", - "memoffset 0.8.0", + "memoffset", "scopeguard", ] [[package]] name = "crossbeam-utils" -version = "0.8.15" +version = "0.8.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c063cd8cc95f5c377ed0d4b49a4b21f632396ff690e8470c29b3359b346984b" +checksum = "5a22b2d63d4d1dc0b7f1b6b2747dd0088008a9be28b6ddf0b1e7d335e3037294" dependencies = [ "cfg-if", ] @@ -929,9 +922,9 @@ dependencies = [ [[package]] name = "gimli" -version = "0.27.2" +version = "0.27.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad0a93d233ebf96623465aad4046a8d3aa4da22d4f4beba5388838c8a434bbb4" +checksum = "b6c80984affa11d98d1b88b66ac8853f143217b399d3c74116778ff8fdb4ed2e" [[package]] name = "glob" @@ -1084,9 +1077,9 @@ checksum = "453ad9f582a441959e5f0d088b02ce04cfe8d51a8eaf077f12ac6d3e94164ca6" [[package]] name = "js-sys" -version = "0.3.63" +version = "0.3.64" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f37a4a5928311ac501dee68b3c7613a1037d0edb30c8e5427bd832d55d1b790" +checksum = "c5f195fe497f702db0f318b07fdd68edb16955aed830df8363d837542f8f935a" dependencies = [ "wasm-bindgen", ] @@ -1182,9 +1175,9 @@ dependencies = [ [[package]] name = "log" -version = "0.4.18" +version = "0.4.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "518ef76f2f87365916b142844c16d8fefd85039bc5699050210a7778ee1cd1de" +checksum = "b06a4cde4c0f271a446782e3eff8de789548ce57dbc8eca9292c27f4a42004b4" [[package]] name = "maplit" @@ -1216,15 +1209,6 @@ version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" -[[package]] -name = "memoffset" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d61c719bcfbcf5d62b3a09efa6088de8c54bc0bfcd3ea7ae39fcc186108b8de1" -dependencies = [ - "autocfg", -] - [[package]] name = "memoffset" version = "0.9.0" @@ -1384,9 +1368,9 @@ checksum = "dd8b5dd2ae5ed71462c540258bedcb51965123ad7e7ccf4b9a8cafaa4a63576d" [[package]] name = "openssl" -version = "0.10.54" +version = "0.10.55" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "69b3f656a17a6cbc115b5c7a40c616947d213ba182135b014d6051b73ab6f019" +checksum = "345df152bc43501c5eb9e4654ff05f794effb78d4efe3d53abc158baddc0703d" dependencies = [ "bitflags 1.3.2", "cfg-if", @@ -1416,9 +1400,9 @@ checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" [[package]] name = "openssl-sys" -version = "0.9.88" +version = "0.9.90" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2ce0f250f34a308dcfdbb351f511359857d4ed2134ba715a4eadd46e1ffd617" +checksum = "374533b0e45f3a7ced10fcaeccca020e66656bc03dac384f852e4e5a7a8104a6" dependencies = [ "cc", "libc", @@ -1503,9 +1487,9 @@ checksum = "9b2a4787296e9989611394c33f193f676704af1686e70b8f8033ab5ba9a35a94" [[package]] name = "pest" -version = "2.6.0" +version = "2.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e68e84bfb01f0507134eac1e9b410a12ba379d064eab48c50ba4ce329a527b70" +checksum = "16833386b02953ca926d19f64af613b9bf742c48dcd5e09b32fbfc9740bf84e2" dependencies = [ "thiserror", "ucd-trie", @@ -1523,10 +1507,10 @@ dependencies = [ [[package]] name = "pgrx" -version = "0.9.5" +version = "0.9.6" dependencies = [ "atomic-traits", - "bitflags 2.3.1", + "bitflags 2.3.2", "bitvec", "enum-map", "heapless", @@ -1546,7 +1530,7 @@ dependencies = [ [[package]] name = "pgrx-macros" -version = "0.9.5" +version = "0.9.6" dependencies = [ "pgrx-sql-entity-graph", "proc-macro2", @@ -1557,7 +1541,7 @@ dependencies = [ [[package]] name = "pgrx-pg-config" -version = "0.9.5" +version = "0.9.6" dependencies = [ "cargo_toml", "dirs", @@ -1573,12 +1557,12 @@ dependencies = [ [[package]] name = "pgrx-pg-sys" -version = "0.9.5" +version = "0.9.6" dependencies = [ "bindgen", "eyre", "libc", - "memoffset 0.9.0", + "memoffset", "once_cell", "pgrx-macros", "pgrx-pg-config", @@ -1593,7 +1577,7 @@ dependencies = [ [[package]] name = "pgrx-sql-entity-graph" -version = "0.9.5" +version = "0.9.6" dependencies = [ "atty", "convert_case", @@ -1609,7 +1593,7 @@ dependencies = [ [[package]] name = "pgrx-tests" -version = "0.9.5" +version = "0.9.6" dependencies = [ "clap-cargo", "eyre", @@ -1687,7 +1671,7 @@ version = "1.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9bd9647b268a3d3e14ff09c23201133a62589c658db02bb7388c7246aafe0590" dependencies = [ - "base64 0.21.2", + "base64", "indexmap", "line-wrap", "quick-xml", @@ -1715,7 +1699,7 @@ version = "0.6.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "78b7fa9f396f51dffd61546fd8573ee20592287996568e6175ceb0f8699ad75d" dependencies = [ - "base64 0.21.2", + "base64", "byteorder", "bytes", "fallible-iterator", @@ -1746,9 +1730,9 @@ checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" [[package]] name = "prettyplease" -version = "0.2.6" +version = "0.2.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b69d39aab54d069e7f2fe8cb970493e7834601ca2d8c65fd7bbd183578080d1" +checksum = "f2b0377b720bde721213a46cda1289b2f34abf0a436907cad91578c20de0454d" dependencies = [ "proc-macro2", "syn 2.0.18", @@ -1961,9 +1945,9 @@ dependencies = [ [[package]] name = "rustix" -version = "0.37.19" +version = "0.37.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "acf8729d8542766f1b2cf77eb034d52f40d375bb8b615d0b147089946e16613d" +checksum = "b96e891d04aa506a6d1f318d2771bcb1c7dfda84e126660ace067c9b474bb2c0" dependencies = [ "bitflags 1.3.2", "errno", @@ -1975,14 +1959,24 @@ dependencies = [ [[package]] name = "rustls" -version = "0.20.8" +version = "0.21.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fff78fc74d175294f4e83b28343315ffcfb114b156f0185e9741cb5570f50e2f" +checksum = "e32ca28af694bc1bbf399c33a516dbdf1c90090b8ab23c2bc24f834aa2247f5f" dependencies = [ "log", "ring", + "rustls-webpki", "sct", - "webpki", +] + +[[package]] +name = "rustls-webpki" +version = "0.100.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d6207cd5ed3d8dca7816f8f3725513a34609c0c765bf652b8c3cb4cfd87db46b" +dependencies = [ + "ring", + "untrusted", ] [[package]] @@ -2157,9 +2151,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.96" +version = "1.0.97" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "057d394a50403bcac12672b2b18fb387ab6d289d957dab67dd201875391e52f1" +checksum = "bdf3bf93142acad5821c99197022e170842cdbc1c30482b98750c688c640842a" dependencies = [ "itoa", "ryu", @@ -2177,9 +2171,9 @@ dependencies = [ [[package]] name = "sha2" -version = "0.10.6" +version = "0.10.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "82e6b795fe2e3b1e845bafcb27aa35405c4d47cdfc92af5fc8d3002f76cebdc0" +checksum = "479fb9d862239e610720565ca91403019f2f00410f1864c5aa7479b950a76ed8" dependencies = [ "cfg-if", "cpufeatures", @@ -2613,9 +2607,9 @@ dependencies = [ [[package]] name = "tracing-attributes" -version = "0.1.24" +version = "0.1.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f57e3ca2a01450b1a921183a9c9cbfda207fd822cef4ccb00a65402cbba7a74" +checksum = "8803eee176538f94ae9a14b55b2804eb7e1441f8210b1c31290b3bccdccff73b" dependencies = [ "proc-macro2", "quote", @@ -2743,18 +2737,18 @@ checksum = "a156c684c91ea7d62626509bce3cb4e1d9ed5c4d978f7b4352658f96a4c26b4a" [[package]] name = "ureq" -version = "2.6.2" +version = "2.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "338b31dd1314f68f3aabf3ed57ab922df95ffcd902476ca7ba3c4ce7b908c46d" +checksum = "0b11c96ac7ee530603dcdf68ed1557050f374ce55a5a07193ebf8cbc9f8927e9" dependencies = [ - "base64 0.13.1", + "base64", "flate2", "log", "native-tls", "once_cell", "rustls", + "rustls-webpki", "url", - "webpki", "webpki-roots", ] @@ -2777,9 +2771,9 @@ checksum = "711b9620af191e0cdc7468a8d14e709c3dcdb115b36f838e601583af800a370a" [[package]] name = "uuid" -version = "1.3.3" +version = "1.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "345444e32442451b267fc254ae85a209c64be56d2890e601a0c37ff0c3c5ecd2" +checksum = "0fa2982af2eec27de306107c027578ff7f423d65f7250e40ce0fea8f45248b81" dependencies = [ "getrandom", ] @@ -2836,9 +2830,9 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" -version = "0.2.86" +version = "0.2.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5bba0e8cb82ba49ff4e229459ff22a191bbe9a1cb3a341610c9c33efc27ddf73" +checksum = "7706a72ab36d8cb1f80ffbf0e071533974a60d0a308d01a5d0375bf60499a342" dependencies = [ "cfg-if", "wasm-bindgen-macro", @@ -2846,9 +2840,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-backend" -version = "0.2.86" +version = "0.2.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "19b04bc93f9d6bdee709f6bd2118f57dd6679cf1176a1af464fca3ab0d66d8fb" +checksum = "5ef2b6d3c510e9625e5fe6f509ab07d66a760f0885d858736483c32ed7809abd" dependencies = [ "bumpalo", "log", @@ -2861,9 +2855,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.86" +version = "0.2.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14d6b024f1a526bb0234f52840389927257beb670610081360e5a03c5df9c258" +checksum = "dee495e55982a3bd48105a7b947fd2a9b4a8ae3010041b9e0faab3f9cd028f1d" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -2871,9 +2865,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.86" +version = "0.2.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e128beba882dd1eb6200e1dc92ae6c5dbaa4311aa7bb211ca035779e5efc39f8" +checksum = "54681b18a46765f095758388f2d0cf16eb8d4169b639ab575a8f5693af210c7b" dependencies = [ "proc-macro2", "quote", @@ -2884,37 +2878,27 @@ dependencies = [ [[package]] name = "wasm-bindgen-shared" -version = "0.2.86" +version = "0.2.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed9d5b4305409d1fc9482fee2d7f9bcbf24b3972bf59817ef757e23982242a93" +checksum = "ca6ad05a4870b2bf5fe995117d3728437bd27d7cd5f06f13c17443ef369775a1" [[package]] name = "web-sys" -version = "0.3.63" +version = "0.3.64" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3bdd9ef4e984da1187bf8110c5cf5b845fbc87a23602cdf912386a76fcd3a7c2" +checksum = "9b85cbef8c220a6abc02aefd892dfc0fc23afb1c6a426316ec33253a3877249b" dependencies = [ "js-sys", "wasm-bindgen", ] -[[package]] -name = "webpki" -version = "0.22.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f095d78192e208183081cc07bc5515ef55216397af48b873e5edcd72637fa1bd" -dependencies = [ - "ring", - "untrusted", -] - [[package]] name = "webpki-roots" -version = "0.22.6" +version = "0.23.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6c71e40d7d2c34a5106301fb632274ca37242cd0c9d3e64dbece371a40a2d87" +checksum = "b03058f88386e5ff5310d9111d53f48b17d732b401aeb83a8d5190f2ac459338" dependencies = [ - "webpki", + "rustls-webpki", ] [[package]] @@ -3073,9 +3057,9 @@ checksum = "1a515f5799fe4961cb532f983ce2b23082366b898e52ffbce459c86f67c8378a" [[package]] name = "winnow" -version = "0.4.6" +version = "0.4.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61de7bac303dc551fe038e2b3cef0f571087a47571ea6e79a87692ac99b99699" +checksum = "ca0ace3845f0d96209f0375e6d367e3eb87eb65d27d445bdc9f1843a26f39448" dependencies = [ "memchr", ] diff --git a/cargo-pgrx/Cargo.toml b/cargo-pgrx/Cargo.toml index 57c5bbb9d..399045ace 100644 --- a/cargo-pgrx/Cargo.toml +++ b/cargo-pgrx/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cargo-pgrx" -version = "0.9.5" +version = "0.9.6" authors = ["ZomboDB, LLC "] license = "MIT" description = "Cargo subcommand for 'pgrx' to make Postgres extension development easy" @@ -17,20 +17,20 @@ edition = "2021" atty = "0.2.14" cargo_metadata = "0.15.4" cargo_toml = "0.15.3" -clap = { version = "4.3.3", features = [ "env", "suggestions", "cargo", "derive", "wrap_help" ] } +clap = { version = "4.3.5", features = [ "env", "suggestions", "cargo", "derive", "wrap_help" ] } clap-cargo = { version = "0.10.0", features = [ "cargo_metadata" ] } semver = "1.0.17" owo-colors = { version = "3.5.0", features = [ "supports-colors" ] } env_proxy = "0.4.1" num_cpus = "1.15.0" -pgrx-pg-config = { path = "../pgrx-pg-config", version = "=0.9.5" } -pgrx-sql-entity-graph = { path = "../pgrx-sql-entity-graph", version = "=0.9.5" } -prettyplease = "0.2.6" +pgrx-pg-config = { path = "../pgrx-pg-config", version = "=0.9.6" } +pgrx-sql-entity-graph = { path = "../pgrx-sql-entity-graph", version = "=0.9.6" } +prettyplease = "0.2.8" proc-macro2 = { version = "1.0.60", features = [ "span-locations" ] } quote = "1.0.28" rayon = "1.7.0" regex = "1.8.4" -ureq = "2.6.2" +ureq = "2.7.1" url = "2.4.0" serde = { version = "1.0", features = [ "derive" ] } serde_derive = "1.0" diff --git a/cargo-pgrx/src/templates/cargo_toml b/cargo-pgrx/src/templates/cargo_toml index bb04ee34e..f9d7939bd 100644 --- a/cargo-pgrx/src/templates/cargo_toml +++ b/cargo-pgrx/src/templates/cargo_toml @@ -16,10 +16,10 @@ pg15 = ["pgrx/pg15", "pgrx-tests/pg15" ] pg_test = [] [dependencies] -pgrx = "=0.9.5" +pgrx = "=0.9.6" [dev-dependencies] -pgrx-tests = "=0.9.5" +pgrx-tests = "=0.9.6" [profile.dev] panic = "unwind" diff --git a/nix/templates/default/Cargo.toml b/nix/templates/default/Cargo.toml index 38a0e02e1..5dd8ff18c 100644 --- a/nix/templates/default/Cargo.toml +++ b/nix/templates/default/Cargo.toml @@ -16,10 +16,10 @@ pg15 = ["pgrx/pg15", "pgrx-tests/pg15" ] pg_test = [] [dependencies] -pgrx = "=0.9.5" +pgrx = "=0.9.6" [dev-dependencies] -pgrx-tests = "=0.9.5" +pgrx-tests = "=0.9.6" tempfile = "3.2.0" once_cell = "1.7.2" diff --git a/pgrx-examples/bad_ideas/Cargo.toml b/pgrx-examples/bad_ideas/Cargo.toml index 16c7977ff..26b8fb532 100644 --- a/pgrx-examples/bad_ideas/Cargo.toml +++ b/pgrx-examples/bad_ideas/Cargo.toml @@ -18,7 +18,7 @@ pg_test = [] [dependencies] pgrx = { path = "../../pgrx", default-features = false } rand = "0.8.5" -ureq = "2.6.2" +ureq = "2.7.1" [dev-dependencies] pgrx-tests = { path = "../../pgrx-tests" } diff --git a/pgrx-macros/Cargo.toml b/pgrx-macros/Cargo.toml index 9e1843a65..d7ac16d8e 100644 --- a/pgrx-macros/Cargo.toml +++ b/pgrx-macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pgrx-macros" -version = "0.9.5" +version = "0.9.6" authors = ["ZomboDB, LLC "] license = "MIT" description = "Proc Macros for 'pgrx'" @@ -21,7 +21,7 @@ rustc-args = ["--cfg", "docsrs"] no-schema-generation = ["pgrx-sql-entity-graph/no-schema-generation"] [dependencies] -pgrx-sql-entity-graph = { path = "../pgrx-sql-entity-graph", version = "=0.9.5" } +pgrx-sql-entity-graph = { path = "../pgrx-sql-entity-graph", version = "=0.9.6" } proc-macro2 = "1.0.60" quote = "1.0.28" syn = { version = "1.0.109", features = [ "extra-traits", "full", "fold", "parsing" ] } diff --git a/pgrx-pg-config/Cargo.toml b/pgrx-pg-config/Cargo.toml index 1f200a915..53b5a943c 100644 --- a/pgrx-pg-config/Cargo.toml +++ b/pgrx-pg-config/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pgrx-pg-config" -version = "0.9.5" +version = "0.9.6" authors = ["ZomboDB, LLC "] license = "MIT" description = "A Postgres pg_config wrapper for 'pgrx'" diff --git a/pgrx-pg-sys/Cargo.toml b/pgrx-pg-sys/Cargo.toml index 84d193d47..8b1be5d18 100644 --- a/pgrx-pg-sys/Cargo.toml +++ b/pgrx-pg-sys/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pgrx-pg-sys" -version = "0.9.5" +version = "0.9.6" authors = ["ZomboDB, LLC "] license = "MIT" description = "Generated Rust bindings for Postgres internals, for use with 'pgrx'" @@ -29,16 +29,16 @@ rustdoc-args = ["--cfg", "docsrs"] [dependencies] memoffset = "0.9.0" -pgrx-macros = { path = "../pgrx-macros/", version = "=0.9.5" } -pgrx-sql-entity-graph = { path = "../pgrx-sql-entity-graph/", version = "=0.9.5" } +pgrx-macros = { path = "../pgrx-macros/", version = "=0.9.6" } +pgrx-sql-entity-graph = { path = "../pgrx-sql-entity-graph/", version = "=0.9.6" } serde = { version = "1.0", features = [ "derive" ] } # impls on pub types # polyfill until #![feature(strict_provenance)] stabilizes sptr = "0.3" libc = "0.2" [build-dependencies] -bindgen = { version = "0.65.1", default-features = false, features = ["runtime"] } -pgrx-pg-config= { path = "../pgrx-pg-config/", version = "=0.9.5" } +bindgen = { version = "0.66.1", default-features = false, features = ["runtime"] } +pgrx-pg-config= { path = "../pgrx-pg-config/", version = "=0.9.6" } proc-macro2 = "1.0.60" quote = "1.0.28" syn = { version = "1.0.109", features = [ "extra-traits", "full", "fold", "parsing" ] } diff --git a/pgrx-pg-sys/src/pg11.rs b/pgrx-pg-sys/src/pg11.rs index 29002fd2a..fdcfe737d 100644 --- a/pgrx-pg-sys/src/pg11.rs +++ b/pgrx-pg-sys/src/pg11.rs @@ -165,7 +165,7 @@ pub const ALIGNOF_PG_INT128_TYPE: u32 = 16; pub const ALIGNOF_SHORT: u32 = 2; pub const BLCKSZ: u32 = 8192; pub const DEF_PGPORT: u32 = 28811; -pub const DEF_PGPORT_STR: &[u8; 6usize] = b"28811\0"; +pub const DEF_PGPORT_STR: &[u8; 6] = b"28811\0"; pub const ENABLE_THREAD_SAFETY: u32 = 1; pub const HAVE_APPEND_HISTORY: u32 = 1; pub const HAVE_ATOMICS: u32 = 1; @@ -300,20 +300,20 @@ pub const HAVE__BUILTIN_UNREACHABLE: u32 = 1; pub const HAVE__GET_CPUID: u32 = 1; pub const HAVE__STATIC_ASSERT: u32 = 1; pub const HAVE__VA_ARGS: u32 = 1; -pub const INT64_MODIFIER: &[u8; 2usize] = b"l\0"; +pub const INT64_MODIFIER: &[u8; 2] = b"l\0"; 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.20\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.20\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.20\0"; +pub const PACKAGE_BUGREPORT: &[u8; 26] = b"pgsql-bugs@postgresql.org\0"; +pub const PACKAGE_NAME: &[u8; 11] = b"PostgreSQL\0"; +pub const PACKAGE_STRING: &[u8; 17] = b"PostgreSQL 11.20\0"; +pub const PACKAGE_TARNAME: &[u8; 11] = b"postgresql\0"; +pub const PACKAGE_URL: &[u8; 1] = b"\0"; +pub const PACKAGE_VERSION: &[u8; 6] = b"11.20\0"; +pub const PG_KRB_SRVNAM: &[u8; 9] = b"postgres\0"; +pub const PG_MAJORVERSION: &[u8; 3] = b"11\0"; +pub const PG_VERSION: &[u8; 6] = b"11.20\0"; pub const PG_VERSION_NUM: u32 = 110020; -pub const PG_VERSION_STR : & [u8 ; 103usize] = b"PostgreSQL 11.20 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0, 64-bit\0" ; +pub const PG_VERSION_STR : & [u8 ; 105] = b"PostgreSQL 11.20 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0, 64-bit\0" ; pub const RELSEG_SIZE: u32 = 131072; pub const SIZEOF_BOOL: u32 = 1; pub const SIZEOF_LONG: u32 = 8; @@ -345,8 +345,8 @@ pub const DEFAULT_BACKEND_FLUSH_AFTER: u32 = 0; pub const DEFAULT_BGWRITER_FLUSH_AFTER: u32 = 64; pub const DEFAULT_CHECKPOINT_FLUSH_AFTER: u32 = 32; pub const WRITEBACK_MAX_PENDING_FLUSHES: u32 = 256; -pub const DEFAULT_PGSOCKET_DIR: &[u8; 5usize] = b"/tmp\0"; -pub const DEFAULT_EVENT_SOURCE: &[u8; 11usize] = b"PostgreSQL\0"; +pub const DEFAULT_PGSOCKET_DIR: &[u8; 5] = b"/tmp\0"; +pub const DEFAULT_EVENT_SOURCE: &[u8; 11] = b"PostgreSQL\0"; pub const PG_CACHE_LINE_SIZE: u32 = 128; pub const TRACE_SORT: u32 = 1; pub const _STDIO_H: u32 = 1; @@ -422,7 +422,7 @@ pub const EOF: i32 = -1; pub const SEEK_SET: u32 = 0; pub const SEEK_CUR: u32 = 1; pub const SEEK_END: u32 = 2; -pub const P_tmpdir: &[u8; 5usize] = b"/tmp\0"; +pub const P_tmpdir: &[u8; 5] = b"/tmp\0"; pub const _BITS_STDIO_LIM_H: u32 = 1; pub const L_tmpnam: u32 = 20; pub const TMP_MAX: u32 = 238328; @@ -731,8 +731,8 @@ pub const true_: u32 = 1; pub const false_: u32 = 0; pub const __bool_true_false_are_defined: u32 = 1; pub const USE_STDBOOL: u32 = 1; -pub const INT64_FORMAT: &[u8; 4usize] = b"%ld\0"; -pub const UINT64_FORMAT: &[u8; 4usize] = b"%lu\0"; +pub const INT64_FORMAT: &[u8; 4] = b"%ld\0"; +pub const UINT64_FORMAT: &[u8; 4] = b"%lu\0"; pub const HAVE_INT128: u32 = 1; pub const PG_INT8_MIN: i32 = -128; pub const PG_INT8_MAX: u32 = 127; @@ -752,9 +752,9 @@ pub const STATUS_EOF: i32 = -2; pub const STATUS_FOUND: u32 = 1; pub const STATUS_WAITING: u32 = 2; pub const PG_BINARY: u32 = 0; -pub const PG_BINARY_A: &[u8; 2usize] = b"a\0"; -pub const PG_BINARY_R: &[u8; 2usize] = b"r\0"; -pub const PG_BINARY_W: &[u8; 2usize] = b"w\0"; +pub const PG_BINARY_A: &[u8; 2] = b"a\0"; +pub const PG_BINARY_R: &[u8; 2] = b"r\0"; +pub const PG_BINARY_W: &[u8; 2] = b"w\0"; pub const _CTYPE_H: u32 = 1; pub const _NETDB_H: u32 = 1; pub const _NETINET_IN_H: u32 = 1; @@ -1125,12 +1125,12 @@ pub const IN_LOOPBACKNET: u32 = 127; pub const INET_ADDRSTRLEN: u32 = 16; pub const INET6_ADDRSTRLEN: u32 = 46; pub const _RPC_NETDB_H: u32 = 1; -pub const _PATH_HEQUIV: &[u8; 17usize] = b"/etc/hosts.equiv\0"; -pub const _PATH_HOSTS: &[u8; 11usize] = b"/etc/hosts\0"; -pub const _PATH_NETWORKS: &[u8; 14usize] = b"/etc/networks\0"; -pub const _PATH_NSSWITCH_CONF: &[u8; 19usize] = b"/etc/nsswitch.conf\0"; -pub const _PATH_PROTOCOLS: &[u8; 15usize] = b"/etc/protocols\0"; -pub const _PATH_SERVICES: &[u8; 14usize] = b"/etc/services\0"; +pub const _PATH_HEQUIV: &[u8; 17] = b"/etc/hosts.equiv\0"; +pub const _PATH_HOSTS: &[u8; 11] = b"/etc/hosts\0"; +pub const _PATH_NETWORKS: &[u8; 14] = b"/etc/networks\0"; +pub const _PATH_NSSWITCH_CONF: &[u8; 19] = b"/etc/nsswitch.conf\0"; +pub const _PATH_PROTOCOLS: &[u8; 15] = b"/etc/protocols\0"; +pub const _PATH_SERVICES: &[u8; 14] = b"/etc/services\0"; pub const HOST_NOT_FOUND: u32 = 1; pub const TRY_AGAIN: u32 = 2; pub const NO_RECOVERY: u32 = 3; @@ -1165,9 +1165,9 @@ 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.20\n\0"; -pub const EXE: &[u8; 1usize] = b"\0"; -pub const DEVNULL: &[u8; 10usize] = b"/dev/null\0"; +pub const PG_BACKEND_VERSIONSTR: &[u8; 29] = b"postgres (PostgreSQL) 11.20\n\0"; +pub const EXE: &[u8; 1] = b"\0"; +pub const DEVNULL: &[u8; 10] = b"/dev/null\0"; pub const PG_IOLBF: u32 = 1; pub const _MATH_H: u32 = 1; pub const _BITS_LIBM_SIMD_DECL_STUBS_H: u32 = 1; @@ -1225,7 +1225,7 @@ pub const FLOAT8PASSBYVAL: u32 = 1; pub const FIELDNO_FUNCTIONCALLINFODATA_ISNULL: u32 = 4; pub const FIELDNO_FUNCTIONCALLINFODATA_ARG: u32 = 6; pub const FIELDNO_FUNCTIONCALLINFODATA_ARGNULL: u32 = 7; -pub const PG_MAGIC_FUNCTION_NAME_STRING: &[u8; 14usize] = b"Pg_magic_func\0"; +pub const PG_MAGIC_FUNCTION_NAME_STRING: &[u8; 14] = b"Pg_magic_func\0"; pub const AGG_CONTEXT_AGGREGATE: u32 = 1; pub const AGG_CONTEXT_WINDOW: u32 = 2; pub const InvalidAttrNumber: u32 = 0; @@ -1398,12 +1398,12 @@ pub const DSM_IMPL_SYSV: u32 = 2; pub const DSM_IMPL_WINDOWS: u32 = 3; pub const DSM_IMPL_MMAP: u32 = 4; pub const DEFAULT_DYNAMIC_SHARED_MEMORY_TYPE: u32 = 1; -pub const PG_DYNSHMEM_DIR: &[u8; 12usize] = b"pg_dynshmem\0"; -pub const PG_DYNSHMEM_MMAP_FILE_PREFIX: &[u8; 6usize] = b"mmap.\0"; +pub const PG_DYNSHMEM_DIR: &[u8; 12] = b"pg_dynshmem\0"; +pub const PG_DYNSHMEM_MMAP_FILE_PREFIX: &[u8; 6] = b"mmap.\0"; pub const DSM_CREATE_NULL_IF_MAXSEGMENTS: u32 = 1; pub const DSM_HANDLE_INVALID: u32 = 0; pub const SIZEOF_DSA_POINTER: u32 = 8; -pub const DSA_POINTER_FORMAT: &[u8; 7usize] = b"%016lx\0"; +pub const DSA_POINTER_FORMAT: &[u8; 7] = b"%016lx\0"; pub const DSA_ALLOC_HUGE: u32 = 1; pub const DSA_ALLOC_NO_OOM: u32 = 2; pub const DSA_ALLOC_ZERO: u32 = 4; @@ -1417,7 +1417,7 @@ pub const ShareRowExclusiveLock: u32 = 6; pub const ExclusiveLock: u32 = 7; pub const AccessExclusiveLock: u32 = 8; pub const BITS_PER_BITMAPWORD: u32 = 32; -pub const RELCACHE_INIT_FILENAME: &[u8; 17usize] = b"pg_internal.init\0"; +pub const RELCACHE_INIT_FILENAME: &[u8; 17] = b"pg_internal.init\0"; pub const FIELDNO_HEAPTUPLEDATA_DATA: u32 = 3; pub const _FCNTL_H: u32 = 1; pub const __O_LARGEFILE: u32 = 0; @@ -1631,8 +1631,8 @@ pub const NO_MAX_DSIZE: i32 = -1; pub const _DIRENT_H: u32 = 1; pub const _DIRENT_MATCHES_DIRENT64: u32 = 1; pub const MAXNAMLEN: u32 = 255; -pub const PG_TEMP_FILES_DIR: &[u8; 10usize] = b"pgsql_tmp\0"; -pub const PG_TEMP_FILE_PREFIX: &[u8; 10usize] = b"pgsql_tmp\0"; +pub const PG_TEMP_FILES_DIR: &[u8; 10] = b"pgsql_tmp\0"; +pub const PG_TEMP_FILE_PREFIX: &[u8; 10] = b"pgsql_tmp\0"; pub const DEFAULT_SPINS_PER_DELAY: u32 = 100; pub const SHARED_TUPLESTORE_SINGLE_PASS: u32 = 1; pub const FIELDNO_TUPLETABLESLOT_SLOW: u32 = 4; @@ -1866,7 +1866,7 @@ pub const AUTH_REQ_SASL_CONT: u32 = 11; pub const AUTH_REQ_SASL_FIN: u32 = 12; pub const MIN_XFN_CHARS: u32 = 16; pub const MAX_XFN_CHARS: u32 = 40; -pub const VALID_XFN_CHARS: &[u8; 40usize] = b"0123456789ABCDEF.history.backup.partial\0"; +pub const VALID_XFN_CHARS: &[u8; 40] = b"0123456789ABCDEF.history.backup.partial\0"; pub const CATALOG_VERSION_NO: u32 = 201809051; pub const OIDCHARS: u32 = 10; pub const FORKNAMECHARS: u32 = 4; @@ -1931,10 +1931,10 @@ pub const INVALID_PGPROCNO: u32 = 2147483647; pub const DELAY_CHKPT_START: u32 = 1; pub const DELAY_CHKPT_COMPLETE: u32 = 2; pub const NUM_AUXILIARY_PROCS: u32 = 4; -pub const PGSTAT_STAT_PERMANENT_DIRECTORY: &[u8; 8usize] = b"pg_stat\0"; -pub const PGSTAT_STAT_PERMANENT_FILENAME: &[u8; 20usize] = b"pg_stat/global.stat\0"; -pub const PGSTAT_STAT_PERMANENT_TMPFILE: &[u8; 19usize] = b"pg_stat/global.tmp\0"; -pub const PG_STAT_TMP_DIR: &[u8; 12usize] = b"pg_stat_tmp\0"; +pub const PGSTAT_STAT_PERMANENT_DIRECTORY: &[u8; 8] = b"pg_stat\0"; +pub const PGSTAT_STAT_PERMANENT_FILENAME: &[u8; 20] = b"pg_stat/global.stat\0"; +pub const PGSTAT_STAT_PERMANENT_TMPFILE: &[u8; 19] = b"pg_stat/global.tmp\0"; +pub const PG_STAT_TMP_DIR: &[u8; 12] = b"pg_stat_tmp\0"; pub const PGSTAT_MAX_MSG_SIZE: u32 = 1000; pub const PGSTAT_FILE_FORMAT_ID: u32 = 27638941; pub const PG_WAIT_LWLOCK: u32 = 16777216; @@ -1970,10 +1970,10 @@ pub const CHECKPOINT_CAUSE_TIME: u32 = 128; pub const CHECKPOINT_REQUESTED: u32 = 256; pub const XLOG_INCLUDE_ORIGIN: u32 = 1; pub const XLOG_MARK_UNIMPORTANT: u32 = 2; -pub const BACKUP_LABEL_FILE: &[u8; 13usize] = b"backup_label\0"; -pub const BACKUP_LABEL_OLD: &[u8; 17usize] = b"backup_label.old\0"; -pub const TABLESPACE_MAP: &[u8; 15usize] = b"tablespace_map\0"; -pub const TABLESPACE_MAP_OLD: &[u8; 19usize] = b"tablespace_map.old\0"; +pub const BACKUP_LABEL_FILE: &[u8; 13] = b"backup_label\0"; +pub const BACKUP_LABEL_OLD: &[u8; 17] = b"backup_label.old\0"; +pub const TABLESPACE_MAP: &[u8; 15] = b"tablespace_map\0"; +pub const TABLESPACE_MAP_OLD: &[u8; 19] = b"tablespace_map.old\0"; pub const XLOG_PAGE_MAGIC: u32 = 53400; pub const XLP_FIRST_IS_CONTRECORD: u32 = 1; pub const XLP_LONG_HEADER: u32 = 2; @@ -1984,8 +1984,8 @@ pub const WalSegMinSize: u32 = 1048576; pub const WalSegMaxSize: u32 = 1073741824; pub const DEFAULT_MIN_WAL_SEGS: u32 = 5; pub const DEFAULT_MAX_WAL_SEGS: u32 = 64; -pub const XLOGDIR: &[u8; 7usize] = b"pg_wal\0"; -pub const XLOG_CONTROL_FILE: &[u8; 18usize] = b"global/pg_control\0"; +pub const XLOGDIR: &[u8; 7] = b"pg_wal\0"; +pub const XLOG_CONTROL_FILE: &[u8; 18] = b"global/pg_control\0"; pub const MAXFNAMELEN: u32 = 64; pub const XLOG_FNAME_LEN: u32 = 24; pub const RelationRelationId: Oid = Oid(1259); @@ -2092,7 +2092,7 @@ pub const ACL_USAGE_CHR: u8 = 85u8; pub const ACL_CREATE_CHR: u8 = 67u8; pub const ACL_CREATE_TEMP_CHR: u8 = 84u8; pub const ACL_CONNECT_CHR: u8 = 99u8; -pub const ACL_ALL_RIGHTS_STR: &[u8; 13usize] = b"arwdDxtXUCTc\0"; +pub const ACL_ALL_RIGHTS_STR: &[u8; 13] = b"arwdDxtXUCTc\0"; pub const ACL_ALL_RIGHTS_COLUMN: u32 = 39; pub const ACL_ALL_RIGHTS_RELATION: u32 = 127; pub const ACL_ALL_RIGHTS_SEQUENCE: u32 = 262; @@ -2193,33 +2193,33 @@ pub const INTERVAL_FULL_RANGE: u32 = 32767; pub const INTERVAL_RANGE_MASK: u32 = 32767; pub const INTERVAL_FULL_PRECISION: u32 = 65535; pub const INTERVAL_PRECISION_MASK: u32 = 65535; -pub const DAGO: &[u8; 4usize] = b"ago\0"; -pub const DCURRENT: &[u8; 8usize] = b"current\0"; -pub const EPOCH: &[u8; 6usize] = b"epoch\0"; -pub const INVALID: &[u8; 8usize] = b"invalid\0"; -pub const EARLY: &[u8; 10usize] = b"-infinity\0"; -pub const LATE: &[u8; 9usize] = b"infinity\0"; -pub const NOW: &[u8; 4usize] = b"now\0"; -pub const TODAY: &[u8; 6usize] = b"today\0"; -pub const TOMORROW: &[u8; 9usize] = b"tomorrow\0"; -pub const YESTERDAY: &[u8; 10usize] = b"yesterday\0"; -pub const ZULU: &[u8; 5usize] = b"zulu\0"; -pub const DMICROSEC: &[u8; 8usize] = b"usecond\0"; -pub const DMILLISEC: &[u8; 8usize] = b"msecond\0"; -pub const DSECOND: &[u8; 7usize] = b"second\0"; -pub const DMINUTE: &[u8; 7usize] = b"minute\0"; -pub const DHOUR: &[u8; 5usize] = b"hour\0"; -pub const DDAY: &[u8; 4usize] = b"day\0"; -pub const DWEEK: &[u8; 5usize] = b"week\0"; -pub const DMONTH: &[u8; 6usize] = b"month\0"; -pub const DQUARTER: &[u8; 8usize] = b"quarter\0"; -pub const DYEAR: &[u8; 5usize] = b"year\0"; -pub const DDECADE: &[u8; 7usize] = b"decade\0"; -pub const DCENTURY: &[u8; 8usize] = b"century\0"; -pub const DMILLENNIUM: &[u8; 11usize] = b"millennium\0"; -pub const DA_D: &[u8; 3usize] = b"ad\0"; -pub const DB_C: &[u8; 3usize] = b"bc\0"; -pub const DTIMEZONE: &[u8; 9usize] = b"timezone\0"; +pub const DAGO: &[u8; 4] = b"ago\0"; +pub const DCURRENT: &[u8; 8] = b"current\0"; +pub const EPOCH: &[u8; 6] = b"epoch\0"; +pub const INVALID: &[u8; 8] = b"invalid\0"; +pub const EARLY: &[u8; 10] = b"-infinity\0"; +pub const LATE: &[u8; 9] = b"infinity\0"; +pub const NOW: &[u8; 4] = b"now\0"; +pub const TODAY: &[u8; 6] = b"today\0"; +pub const TOMORROW: &[u8; 9] = b"tomorrow\0"; +pub const YESTERDAY: &[u8; 10] = b"yesterday\0"; +pub const ZULU: &[u8; 5] = b"zulu\0"; +pub const DMICROSEC: &[u8; 8] = b"usecond\0"; +pub const DMILLISEC: &[u8; 8] = b"msecond\0"; +pub const DSECOND: &[u8; 7] = b"second\0"; +pub const DMINUTE: &[u8; 7] = b"minute\0"; +pub const DHOUR: &[u8; 5] = b"hour\0"; +pub const DDAY: &[u8; 4] = b"day\0"; +pub const DWEEK: &[u8; 5] = b"week\0"; +pub const DMONTH: &[u8; 6] = b"month\0"; +pub const DQUARTER: &[u8; 8] = b"quarter\0"; +pub const DYEAR: &[u8; 5] = b"year\0"; +pub const DDECADE: &[u8; 7] = b"decade\0"; +pub const DCENTURY: &[u8; 8] = b"century\0"; +pub const DMILLENNIUM: &[u8; 11] = b"millennium\0"; +pub const DA_D: &[u8; 3] = b"ad\0"; +pub const DB_C: &[u8; 3] = b"bc\0"; +pub const DTIMEZONE: &[u8; 9] = b"timezone\0"; pub const AM: u32 = 0; pub const PM: u32 = 1; pub const HR24: u32 = 2; @@ -2335,7 +2335,7 @@ pub const PERFORM_DELETION_CONCURRENTLY: u32 = 2; pub const PERFORM_DELETION_QUIETLY: u32 = 4; pub const PERFORM_DELETION_SKIP_ORIGINAL: u32 = 8; pub const PERFORM_DELETION_SKIP_EXTENSIONS: u32 = 16; -pub const DEFAULT_INDEX_TYPE: &[u8; 6usize] = b"btree\0"; +pub const DEFAULT_INDEX_TYPE: &[u8; 6] = b"btree\0"; pub const INDEX_CREATE_IS_PRIMARY: u32 = 1; pub const INDEX_CREATE_ADD_CONSTRAINT: u32 = 2; pub const INDEX_CREATE_SKIP_BUILD: u32 = 4; @@ -3131,7 +3131,7 @@ pub const PROCARRAY_FLAGS_DEFAULT: u32 = 16; pub const PROCARRAY_FLAGS_VACUUM: u32 = 18; pub const PROCARRAY_FLAGS_ANALYZE: u32 = 20; pub const PROCARRAY_FLAGS_VACUUM_ANALYZE: u32 = 22; -pub const PG_AUTOCONF_FILENAME: &[u8; 21usize] = b"postgresql.auto.conf\0"; +pub const PG_AUTOCONF_FILENAME: &[u8; 21] = b"postgresql.auto.conf\0"; pub const GUC_QUALIFIER_SEPARATOR: u8 = 46u8; pub const GUC_LIST_INPUT: u32 = 1; pub const GUC_LIST_QUOTE: u32 = 2; diff --git a/pgrx-pg-sys/src/pg12.rs b/pgrx-pg-sys/src/pg12.rs index 14170a895..ece773445 100644 --- a/pgrx-pg-sys/src/pg12.rs +++ b/pgrx-pg-sys/src/pg12.rs @@ -165,7 +165,7 @@ pub const ALIGNOF_PG_INT128_TYPE: u32 = 16; pub const ALIGNOF_SHORT: u32 = 2; pub const BLCKSZ: u32 = 8192; pub const DEF_PGPORT: u32 = 28812; -pub const DEF_PGPORT_STR: &[u8; 6usize] = b"28812\0"; +pub const DEF_PGPORT_STR: &[u8; 6] = b"28812\0"; pub const ENABLE_THREAD_SAFETY: u32 = 1; pub const HAVE_APPEND_HISTORY: u32 = 1; pub const HAVE_ATOMICS: u32 = 1; @@ -308,20 +308,20 @@ pub const HAVE__BUILTIN_TYPES_COMPATIBLE_P: u32 = 1; pub const HAVE__BUILTIN_UNREACHABLE: u32 = 1; pub const HAVE__GET_CPUID: u32 = 1; pub const HAVE__STATIC_ASSERT: u32 = 1; -pub const INT64_MODIFIER: &[u8; 2usize] = b"l\0"; +pub const INT64_MODIFIER: &[u8; 2] = b"l\0"; 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.15\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.15\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.15\0"; +pub const PACKAGE_BUGREPORT: &[u8; 32] = b"pgsql-bugs@lists.postgresql.org\0"; +pub const PACKAGE_NAME: &[u8; 11] = b"PostgreSQL\0"; +pub const PACKAGE_STRING: &[u8; 17] = b"PostgreSQL 12.15\0"; +pub const PACKAGE_TARNAME: &[u8; 11] = b"postgresql\0"; +pub const PACKAGE_URL: &[u8; 1] = b"\0"; +pub const PACKAGE_VERSION: &[u8; 6] = b"12.15\0"; +pub const PG_KRB_SRVNAM: &[u8; 9] = b"postgres\0"; +pub const PG_MAJORVERSION: &[u8; 3] = b"12\0"; +pub const PG_VERSION: &[u8; 6] = b"12.15\0"; pub const PG_VERSION_NUM: u32 = 120015; -pub const PG_VERSION_STR : & [u8 ; 103usize] = b"PostgreSQL 12.15 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0, 64-bit\0" ; +pub const PG_VERSION_STR : & [u8 ; 105] = b"PostgreSQL 12.15 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0, 64-bit\0" ; pub const RELSEG_SIZE: u32 = 131072; pub const SIZEOF_BOOL: u32 = 1; pub const SIZEOF_LONG: u32 = 8; @@ -353,8 +353,8 @@ pub const DEFAULT_BACKEND_FLUSH_AFTER: u32 = 0; pub const DEFAULT_BGWRITER_FLUSH_AFTER: u32 = 64; pub const DEFAULT_CHECKPOINT_FLUSH_AFTER: u32 = 32; pub const WRITEBACK_MAX_PENDING_FLUSHES: u32 = 256; -pub const DEFAULT_PGSOCKET_DIR: &[u8; 5usize] = b"/tmp\0"; -pub const DEFAULT_EVENT_SOURCE: &[u8; 11usize] = b"PostgreSQL\0"; +pub const DEFAULT_PGSOCKET_DIR: &[u8; 5] = b"/tmp\0"; +pub const DEFAULT_EVENT_SOURCE: &[u8; 11] = b"PostgreSQL\0"; pub const PG_CACHE_LINE_SIZE: u32 = 128; pub const TRACE_SORT: u32 = 1; pub const _STDIO_H: u32 = 1; @@ -430,7 +430,7 @@ pub const EOF: i32 = -1; pub const SEEK_SET: u32 = 0; pub const SEEK_CUR: u32 = 1; pub const SEEK_END: u32 = 2; -pub const P_tmpdir: &[u8; 5usize] = b"/tmp\0"; +pub const P_tmpdir: &[u8; 5] = b"/tmp\0"; pub const _BITS_STDIO_LIM_H: u32 = 1; pub const L_tmpnam: u32 = 20; pub const TMP_MAX: u32 = 238328; @@ -739,8 +739,8 @@ pub const true_: u32 = 1; pub const false_: u32 = 0; pub const __bool_true_false_are_defined: u32 = 1; pub const USE_STDBOOL: u32 = 1; -pub const INT64_FORMAT: &[u8; 4usize] = b"%ld\0"; -pub const UINT64_FORMAT: &[u8; 4usize] = b"%lu\0"; +pub const INT64_FORMAT: &[u8; 4] = b"%ld\0"; +pub const UINT64_FORMAT: &[u8; 4] = b"%lu\0"; pub const HAVE_INT128: u32 = 1; pub const PG_INT8_MIN: i32 = -128; pub const PG_INT8_MAX: u32 = 127; @@ -760,9 +760,9 @@ pub const STATUS_EOF: i32 = -2; pub const STATUS_FOUND: u32 = 1; pub const STATUS_WAITING: u32 = 2; pub const PG_BINARY: u32 = 0; -pub const PG_BINARY_A: &[u8; 2usize] = b"a\0"; -pub const PG_BINARY_R: &[u8; 2usize] = b"r\0"; -pub const PG_BINARY_W: &[u8; 2usize] = b"w\0"; +pub const PG_BINARY_A: &[u8; 2] = b"a\0"; +pub const PG_BINARY_R: &[u8; 2] = b"r\0"; +pub const PG_BINARY_W: &[u8; 2] = b"w\0"; pub const _CTYPE_H: u32 = 1; pub const _NETDB_H: u32 = 1; pub const _NETINET_IN_H: u32 = 1; @@ -1133,12 +1133,12 @@ pub const IN_LOOPBACKNET: u32 = 127; pub const INET_ADDRSTRLEN: u32 = 16; pub const INET6_ADDRSTRLEN: u32 = 46; pub const _RPC_NETDB_H: u32 = 1; -pub const _PATH_HEQUIV: &[u8; 17usize] = b"/etc/hosts.equiv\0"; -pub const _PATH_HOSTS: &[u8; 11usize] = b"/etc/hosts\0"; -pub const _PATH_NETWORKS: &[u8; 14usize] = b"/etc/networks\0"; -pub const _PATH_NSSWITCH_CONF: &[u8; 19usize] = b"/etc/nsswitch.conf\0"; -pub const _PATH_PROTOCOLS: &[u8; 15usize] = b"/etc/protocols\0"; -pub const _PATH_SERVICES: &[u8; 14usize] = b"/etc/services\0"; +pub const _PATH_HEQUIV: &[u8; 17] = b"/etc/hosts.equiv\0"; +pub const _PATH_HOSTS: &[u8; 11] = b"/etc/hosts\0"; +pub const _PATH_NETWORKS: &[u8; 14] = b"/etc/networks\0"; +pub const _PATH_NSSWITCH_CONF: &[u8; 19] = b"/etc/nsswitch.conf\0"; +pub const _PATH_PROTOCOLS: &[u8; 15] = b"/etc/protocols\0"; +pub const _PATH_SERVICES: &[u8; 14] = b"/etc/services\0"; pub const HOST_NOT_FOUND: u32 = 1; pub const TRY_AGAIN: u32 = 2; pub const NO_RECOVERY: u32 = 3; @@ -1173,9 +1173,9 @@ 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.15\n\0"; -pub const EXE: &[u8; 1usize] = b"\0"; -pub const DEVNULL: &[u8; 10usize] = b"/dev/null\0"; +pub const PG_BACKEND_VERSIONSTR: &[u8; 29] = b"postgres (PostgreSQL) 12.15\n\0"; +pub const EXE: &[u8; 1] = b"\0"; +pub const DEVNULL: &[u8; 10] = b"/dev/null\0"; pub const USE_REPL_SNPRINTF: u32 = 1; pub const PG_STRERROR_R_BUFLEN: u32 = 256; pub const PG_IOLBF: u32 = 1; @@ -1236,7 +1236,7 @@ pub const FLOAT4PASSBYVAL: u32 = 1; pub const FLOAT8PASSBYVAL: u32 = 1; pub const FIELDNO_FUNCTIONCALLINFODATA_ISNULL: u32 = 4; pub const FIELDNO_FUNCTIONCALLINFODATA_ARGS: u32 = 6; -pub const PG_MAGIC_FUNCTION_NAME_STRING: &[u8; 14usize] = b"Pg_magic_func\0"; +pub const PG_MAGIC_FUNCTION_NAME_STRING: &[u8; 14] = b"Pg_magic_func\0"; pub const AGG_CONTEXT_AGGREGATE: u32 = 1; pub const AGG_CONTEXT_WINDOW: u32 = 2; pub const InvalidAttrNumber: u32 = 0; @@ -1620,15 +1620,15 @@ pub const HOST_NAME_MAX: u32 = 64; pub const MQ_PRIO_MAX: u32 = 32768; pub const SEM_VALUE_MAX: u32 = 2147483647; pub const MAXNAMLEN: u32 = 255; -pub const PG_TEMP_FILES_DIR: &[u8; 10usize] = b"pgsql_tmp\0"; -pub const PG_TEMP_FILE_PREFIX: &[u8; 10usize] = b"pgsql_tmp\0"; +pub const PG_TEMP_FILES_DIR: &[u8; 10] = b"pgsql_tmp\0"; +pub const PG_TEMP_FILE_PREFIX: &[u8; 10] = b"pgsql_tmp\0"; pub const DSM_IMPL_POSIX: u32 = 1; pub const DSM_IMPL_SYSV: u32 = 2; pub const DSM_IMPL_WINDOWS: u32 = 3; pub const DSM_IMPL_MMAP: u32 = 4; pub const DEFAULT_DYNAMIC_SHARED_MEMORY_TYPE: u32 = 1; -pub const PG_DYNSHMEM_DIR: &[u8; 12usize] = b"pg_dynshmem\0"; -pub const PG_DYNSHMEM_MMAP_FILE_PREFIX: &[u8; 6usize] = b"mmap.\0"; +pub const PG_DYNSHMEM_DIR: &[u8; 12] = b"pg_dynshmem\0"; +pub const PG_DYNSHMEM_MMAP_FILE_PREFIX: &[u8; 6] = b"mmap.\0"; pub const DSM_CREATE_NULL_IF_MAXSEGMENTS: u32 = 1; pub const DSM_HANDLE_INVALID: u32 = 0; pub const DEFAULT_SPINS_PER_DELAY: u32 = 100; @@ -1658,7 +1658,7 @@ pub const POSTGRES_EPOCH_JDATE: u32 = 2451545; pub const DATETIME_MIN_JULIAN: u32 = 0; pub const DATE_END_JULIAN: u32 = 2147483494; pub const TIMESTAMP_END_JULIAN: u32 = 109203528; -pub const RELCACHE_INIT_FILENAME: &[u8; 17usize] = b"pg_internal.init\0"; +pub const RELCACHE_INIT_FILENAME: &[u8; 17] = b"pg_internal.init\0"; pub const INDEX_SIZE_MASK: u32 = 8191; pub const INDEX_AM_RESERVED_BIT: u32 = 8192; pub const INDEX_VAR_MASK: u32 = 16384; @@ -1685,7 +1685,7 @@ pub const LINE_MAX: u32 = 2048; pub const CHARCLASS_NAME_MAX: u32 = 2048; pub const RE_DUP_MAX: u32 = 32767; pub const SIZEOF_DSA_POINTER: u32 = 8; -pub const DSA_POINTER_FORMAT: &[u8; 7usize] = b"%016lx\0"; +pub const DSA_POINTER_FORMAT: &[u8; 7] = b"%016lx\0"; pub const DSA_ALLOC_HUGE: u32 = 1; pub const DSA_ALLOC_NO_OOM: u32 = 2; pub const DSA_ALLOC_ZERO: u32 = 4; @@ -1905,7 +1905,7 @@ pub const AUTH_REQ_SASL_CONT: u32 = 11; pub const AUTH_REQ_SASL_FIN: u32 = 12; pub const MIN_XFN_CHARS: u32 = 16; pub const MAX_XFN_CHARS: u32 = 40; -pub const VALID_XFN_CHARS: &[u8; 40usize] = b"0123456789ABCDEF.history.backup.partial\0"; +pub const VALID_XFN_CHARS: &[u8; 40] = b"0123456789ABCDEF.history.backup.partial\0"; pub const CATALOG_VERSION_NO: u32 = 201909212; pub const OIDCHARS: u32 = 10; pub const FORKNAMECHARS: u32 = 4; @@ -1981,10 +1981,10 @@ pub const INVALID_PGPROCNO: u32 = 2147483647; pub const DELAY_CHKPT_START: u32 = 1; pub const DELAY_CHKPT_COMPLETE: u32 = 2; pub const NUM_AUXILIARY_PROCS: u32 = 4; -pub const PGSTAT_STAT_PERMANENT_DIRECTORY: &[u8; 8usize] = b"pg_stat\0"; -pub const PGSTAT_STAT_PERMANENT_FILENAME: &[u8; 20usize] = b"pg_stat/global.stat\0"; -pub const PGSTAT_STAT_PERMANENT_TMPFILE: &[u8; 19usize] = b"pg_stat/global.tmp\0"; -pub const PG_STAT_TMP_DIR: &[u8; 12usize] = b"pg_stat_tmp\0"; +pub const PGSTAT_STAT_PERMANENT_DIRECTORY: &[u8; 8] = b"pg_stat\0"; +pub const PGSTAT_STAT_PERMANENT_FILENAME: &[u8; 20] = b"pg_stat/global.stat\0"; +pub const PGSTAT_STAT_PERMANENT_TMPFILE: &[u8; 19] = b"pg_stat/global.tmp\0"; +pub const PG_STAT_TMP_DIR: &[u8; 12] = b"pg_stat_tmp\0"; pub const PGSTAT_MAX_MSG_SIZE: u32 = 1000; pub const PGSTAT_FILE_FORMAT_ID: u32 = 27638941; pub const PG_WAIT_LWLOCK: u32 = 16777216; @@ -2029,14 +2029,14 @@ pub const CHECKPOINT_CAUSE_XLOG: u32 = 128; pub const CHECKPOINT_CAUSE_TIME: u32 = 256; pub const XLOG_INCLUDE_ORIGIN: u32 = 1; pub const XLOG_MARK_UNIMPORTANT: u32 = 2; -pub const RECOVERY_SIGNAL_FILE: &[u8; 16usize] = b"recovery.signal\0"; -pub const STANDBY_SIGNAL_FILE: &[u8; 15usize] = b"standby.signal\0"; -pub const BACKUP_LABEL_FILE: &[u8; 13usize] = b"backup_label\0"; -pub const BACKUP_LABEL_OLD: &[u8; 17usize] = b"backup_label.old\0"; -pub const TABLESPACE_MAP: &[u8; 15usize] = b"tablespace_map\0"; -pub const TABLESPACE_MAP_OLD: &[u8; 19usize] = b"tablespace_map.old\0"; -pub const PROMOTE_SIGNAL_FILE: &[u8; 8usize] = b"promote\0"; -pub const FALLBACK_PROMOTE_SIGNAL_FILE: &[u8; 17usize] = b"fallback_promote\0"; +pub const RECOVERY_SIGNAL_FILE: &[u8; 16] = b"recovery.signal\0"; +pub const STANDBY_SIGNAL_FILE: &[u8; 15] = b"standby.signal\0"; +pub const BACKUP_LABEL_FILE: &[u8; 13] = b"backup_label\0"; +pub const BACKUP_LABEL_OLD: &[u8; 17] = b"backup_label.old\0"; +pub const TABLESPACE_MAP: &[u8; 15] = b"tablespace_map\0"; +pub const TABLESPACE_MAP_OLD: &[u8; 19] = b"tablespace_map.old\0"; +pub const PROMOTE_SIGNAL_FILE: &[u8; 8] = b"promote\0"; +pub const FALLBACK_PROMOTE_SIGNAL_FILE: &[u8; 17] = b"fallback_promote\0"; pub const XLOG_PAGE_MAGIC: u32 = 53505; pub const XLP_FIRST_IS_CONTRECORD: u32 = 1; pub const XLP_LONG_HEADER: u32 = 2; @@ -2047,8 +2047,8 @@ pub const WalSegMinSize: u32 = 1048576; pub const WalSegMaxSize: u32 = 1073741824; pub const DEFAULT_MIN_WAL_SEGS: u32 = 5; pub const DEFAULT_MAX_WAL_SEGS: u32 = 64; -pub const XLOGDIR: &[u8; 7usize] = b"pg_wal\0"; -pub const XLOG_CONTROL_FILE: &[u8; 18usize] = b"global/pg_control\0"; +pub const XLOGDIR: &[u8; 7] = b"pg_wal\0"; +pub const XLOG_CONTROL_FILE: &[u8; 18] = b"global/pg_control\0"; pub const MAXFNAMELEN: u32 = 64; pub const XLOG_FNAME_LEN: u32 = 24; pub const RelationRelationId: Oid = Oid(1259); @@ -2156,7 +2156,7 @@ pub const ACL_USAGE_CHR: u8 = 85u8; pub const ACL_CREATE_CHR: u8 = 67u8; pub const ACL_CREATE_TEMP_CHR: u8 = 84u8; pub const ACL_CONNECT_CHR: u8 = 99u8; -pub const ACL_ALL_RIGHTS_STR: &[u8; 13usize] = b"arwdDxtXUCTc\0"; +pub const ACL_ALL_RIGHTS_STR: &[u8; 13] = b"arwdDxtXUCTc\0"; pub const ACL_ALL_RIGHTS_COLUMN: u32 = 39; pub const ACL_ALL_RIGHTS_RELATION: u32 = 127; pub const ACL_ALL_RIGHTS_SEQUENCE: u32 = 262; @@ -2203,7 +2203,7 @@ pub const F_TUPLES_DELETED: u32 = 4; pub const F_FOLLOW_RIGHT: u32 = 8; pub const F_HAS_GARBAGE: u32 = 16; pub const GIST_PAGE_ID: u32 = 65409; -pub const PG_AUTOCONF_FILENAME: &[u8; 21usize] = b"postgresql.auto.conf\0"; +pub const PG_AUTOCONF_FILENAME: &[u8; 21] = b"postgresql.auto.conf\0"; pub const GUC_QUALIFIER_SEPARATOR: u8 = 46u8; pub const GUC_LIST_INPUT: u32 = 1; pub const GUC_LIST_QUOTE: u32 = 2; @@ -2229,7 +2229,7 @@ pub const GUC_UNIT_MIN: u32 = 196608; pub const GUC_UNIT_TIME: u32 = 983040; pub const GUC_EXPLAIN: u32 = 1048576; pub const GUC_UNIT: u32 = 1044480; -pub const DEFAULT_TABLE_ACCESS_METHOD: &[u8; 5usize] = b"heap\0"; +pub const DEFAULT_TABLE_ACCESS_METHOD: &[u8; 5] = b"heap\0"; pub const TABLE_INSERT_SKIP_WAL: u32 = 1; pub const TABLE_INSERT_SKIP_FSM: u32 = 2; pub const TABLE_INSERT_FROZEN: u32 = 4; @@ -2250,33 +2250,33 @@ pub const INTERVAL_FULL_RANGE: u32 = 32767; pub const INTERVAL_RANGE_MASK: u32 = 32767; pub const INTERVAL_FULL_PRECISION: u32 = 65535; pub const INTERVAL_PRECISION_MASK: u32 = 65535; -pub const DAGO: &[u8; 4usize] = b"ago\0"; -pub const DCURRENT: &[u8; 8usize] = b"current\0"; -pub const EPOCH: &[u8; 6usize] = b"epoch\0"; -pub const INVALID: &[u8; 8usize] = b"invalid\0"; -pub const EARLY: &[u8; 10usize] = b"-infinity\0"; -pub const LATE: &[u8; 9usize] = b"infinity\0"; -pub const NOW: &[u8; 4usize] = b"now\0"; -pub const TODAY: &[u8; 6usize] = b"today\0"; -pub const TOMORROW: &[u8; 9usize] = b"tomorrow\0"; -pub const YESTERDAY: &[u8; 10usize] = b"yesterday\0"; -pub const ZULU: &[u8; 5usize] = b"zulu\0"; -pub const DMICROSEC: &[u8; 8usize] = b"usecond\0"; -pub const DMILLISEC: &[u8; 8usize] = b"msecond\0"; -pub const DSECOND: &[u8; 7usize] = b"second\0"; -pub const DMINUTE: &[u8; 7usize] = b"minute\0"; -pub const DHOUR: &[u8; 5usize] = b"hour\0"; -pub const DDAY: &[u8; 4usize] = b"day\0"; -pub const DWEEK: &[u8; 5usize] = b"week\0"; -pub const DMONTH: &[u8; 6usize] = b"month\0"; -pub const DQUARTER: &[u8; 8usize] = b"quarter\0"; -pub const DYEAR: &[u8; 5usize] = b"year\0"; -pub const DDECADE: &[u8; 7usize] = b"decade\0"; -pub const DCENTURY: &[u8; 8usize] = b"century\0"; -pub const DMILLENNIUM: &[u8; 11usize] = b"millennium\0"; -pub const DA_D: &[u8; 3usize] = b"ad\0"; -pub const DB_C: &[u8; 3usize] = b"bc\0"; -pub const DTIMEZONE: &[u8; 9usize] = b"timezone\0"; +pub const DAGO: &[u8; 4] = b"ago\0"; +pub const DCURRENT: &[u8; 8] = b"current\0"; +pub const EPOCH: &[u8; 6] = b"epoch\0"; +pub const INVALID: &[u8; 8] = b"invalid\0"; +pub const EARLY: &[u8; 10] = b"-infinity\0"; +pub const LATE: &[u8; 9] = b"infinity\0"; +pub const NOW: &[u8; 4] = b"now\0"; +pub const TODAY: &[u8; 6] = b"today\0"; +pub const TOMORROW: &[u8; 9] = b"tomorrow\0"; +pub const YESTERDAY: &[u8; 10] = b"yesterday\0"; +pub const ZULU: &[u8; 5] = b"zulu\0"; +pub const DMICROSEC: &[u8; 8] = b"usecond\0"; +pub const DMILLISEC: &[u8; 8] = b"msecond\0"; +pub const DSECOND: &[u8; 7] = b"second\0"; +pub const DMINUTE: &[u8; 7] = b"minute\0"; +pub const DHOUR: &[u8; 5] = b"hour\0"; +pub const DDAY: &[u8; 4] = b"day\0"; +pub const DWEEK: &[u8; 5] = b"week\0"; +pub const DMONTH: &[u8; 6] = b"month\0"; +pub const DQUARTER: &[u8; 8] = b"quarter\0"; +pub const DYEAR: &[u8; 5] = b"year\0"; +pub const DDECADE: &[u8; 7] = b"decade\0"; +pub const DCENTURY: &[u8; 8] = b"century\0"; +pub const DMILLENNIUM: &[u8; 11] = b"millennium\0"; +pub const DA_D: &[u8; 3] = b"ad\0"; +pub const DB_C: &[u8; 3] = b"bc\0"; +pub const DTIMEZONE: &[u8; 9] = b"timezone\0"; pub const AM: u32 = 0; pub const PM: u32 = 1; pub const HR24: u32 = 2; @@ -2390,7 +2390,7 @@ pub const PERFORM_DELETION_QUIETLY: u32 = 4; pub const PERFORM_DELETION_SKIP_ORIGINAL: u32 = 8; pub const PERFORM_DELETION_SKIP_EXTENSIONS: u32 = 16; pub const PERFORM_DELETION_CONCURRENT_LOCK: u32 = 32; -pub const DEFAULT_INDEX_TYPE: &[u8; 6usize] = b"btree\0"; +pub const DEFAULT_INDEX_TYPE: &[u8; 6] = b"btree\0"; pub const INDEX_CREATE_IS_PRIMARY: u32 = 1; pub const INDEX_CREATE_ADD_CONSTRAINT: u32 = 2; pub const INDEX_CREATE_SKIP_BUILD: u32 = 4; diff --git a/pgrx-pg-sys/src/pg13.rs b/pgrx-pg-sys/src/pg13.rs index 75de45a2f..f784a5395 100644 --- a/pgrx-pg-sys/src/pg13.rs +++ b/pgrx-pg-sys/src/pg13.rs @@ -164,9 +164,9 @@ 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 ; 109usize] = b" '--prefix=/home/zombodb/.pgrx/13.11/pgrx-install' '--with-pgport=28813' '--enable-debug' '--enable-cassert'\0" ; +pub const CONFIGURE_ARGS : & [u8 ; 109] = b" '--prefix=/home/zombodb/.pgrx/13.11/pgrx-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 DEF_PGPORT_STR: &[u8; 6] = b"28813\0"; pub const ENABLE_THREAD_SAFETY: u32 = 1; pub const HAVE_APPEND_HISTORY: u32 = 1; pub const HAVE_ATOMICS: u32 = 1; @@ -300,23 +300,23 @@ pub const HAVE__BUILTIN_TYPES_COMPATIBLE_P: u32 = 1; pub const HAVE__BUILTIN_UNREACHABLE: u32 = 1; pub const HAVE__GET_CPUID: u32 = 1; pub const HAVE__STATIC_ASSERT: u32 = 1; -pub const INT64_MODIFIER: &[u8; 2usize] = b"l\0"; +pub const INT64_MODIFIER: &[u8; 2] = b"l\0"; 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 13.11\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; 6usize] = b"13.11\0"; -pub const PG_KRB_SRVNAM: &[u8; 9usize] = b"postgres\0"; -pub const PG_MAJORVERSION: &[u8; 3usize] = b"13\0"; +pub const PACKAGE_BUGREPORT: &[u8; 32] = b"pgsql-bugs@lists.postgresql.org\0"; +pub const PACKAGE_NAME: &[u8; 11] = b"PostgreSQL\0"; +pub const PACKAGE_STRING: &[u8; 17] = b"PostgreSQL 13.11\0"; +pub const PACKAGE_TARNAME: &[u8; 11] = b"postgresql\0"; +pub const PACKAGE_URL: &[u8; 28] = b"https://www.postgresql.org/\0"; +pub const PACKAGE_VERSION: &[u8; 6] = b"13.11\0"; +pub const PG_KRB_SRVNAM: &[u8; 9] = b"postgres\0"; +pub const PG_MAJORVERSION: &[u8; 3] = b"13\0"; pub const PG_MAJORVERSION_NUM: u32 = 13; pub const PG_MINORVERSION_NUM: u32 = 11; pub const PG_USE_STDBOOL: u32 = 1; -pub const PG_VERSION: &[u8; 6usize] = b"13.11\0"; +pub const PG_VERSION: &[u8; 6] = b"13.11\0"; pub const PG_VERSION_NUM: u32 = 130011; -pub const PG_VERSION_STR : & [u8 ; 103usize] = b"PostgreSQL 13.11 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0, 64-bit\0" ; +pub const PG_VERSION_STR : & [u8 ; 105] = b"PostgreSQL 13.11 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0, 64-bit\0" ; pub const RELSEG_SIZE: u32 = 131072; pub const SIZEOF_BOOL: u32 = 1; pub const SIZEOF_LONG: u32 = 8; @@ -347,8 +347,8 @@ pub const DEFAULT_BACKEND_FLUSH_AFTER: u32 = 0; pub const DEFAULT_BGWRITER_FLUSH_AFTER: u32 = 64; pub const DEFAULT_CHECKPOINT_FLUSH_AFTER: u32 = 32; pub const WRITEBACK_MAX_PENDING_FLUSHES: u32 = 256; -pub const DEFAULT_PGSOCKET_DIR: &[u8; 5usize] = b"/tmp\0"; -pub const DEFAULT_EVENT_SOURCE: &[u8; 11usize] = b"PostgreSQL\0"; +pub const DEFAULT_PGSOCKET_DIR: &[u8; 5] = b"/tmp\0"; +pub const DEFAULT_EVENT_SOURCE: &[u8; 11] = b"PostgreSQL\0"; pub const PG_CACHE_LINE_SIZE: u32 = 128; pub const TRACE_SORT: u32 = 1; pub const _STDIO_H: u32 = 1; @@ -424,7 +424,7 @@ pub const EOF: i32 = -1; pub const SEEK_SET: u32 = 0; pub const SEEK_CUR: u32 = 1; pub const SEEK_END: u32 = 2; -pub const P_tmpdir: &[u8; 5usize] = b"/tmp\0"; +pub const P_tmpdir: &[u8; 5] = b"/tmp\0"; pub const _BITS_STDIO_LIM_H: u32 = 1; pub const L_tmpnam: u32 = 20; pub const TMP_MAX: u32 = 238328; @@ -732,8 +732,8 @@ pub const HAVE_PRAGMA_GCC_SYSTEM_HEADER: u32 = 1; pub const true_: u32 = 1; pub const false_: u32 = 0; pub const __bool_true_false_are_defined: u32 = 1; -pub const INT64_FORMAT: &[u8; 4usize] = b"%ld\0"; -pub const UINT64_FORMAT: &[u8; 4usize] = b"%lu\0"; +pub const INT64_FORMAT: &[u8; 4] = b"%ld\0"; +pub const UINT64_FORMAT: &[u8; 4] = b"%lu\0"; pub const HAVE_INT128: u32 = 1; pub const PG_INT8_MIN: i32 = -128; pub const PG_INT8_MAX: u32 = 127; @@ -754,9 +754,9 @@ pub const STATUS_ERROR: i32 = -1; pub const STATUS_EOF: i32 = -2; pub const STATUS_WAITING: u32 = 2; pub const PG_BINARY: u32 = 0; -pub const PG_BINARY_A: &[u8; 2usize] = b"a\0"; -pub const PG_BINARY_R: &[u8; 2usize] = b"r\0"; -pub const PG_BINARY_W: &[u8; 2usize] = b"w\0"; +pub const PG_BINARY_A: &[u8; 2] = b"a\0"; +pub const PG_BINARY_R: &[u8; 2] = b"r\0"; +pub const PG_BINARY_W: &[u8; 2] = b"w\0"; pub const _CTYPE_H: u32 = 1; pub const _NETDB_H: u32 = 1; pub const _NETINET_IN_H: u32 = 1; @@ -1127,12 +1127,12 @@ pub const IN_LOOPBACKNET: u32 = 127; pub const INET_ADDRSTRLEN: u32 = 16; pub const INET6_ADDRSTRLEN: u32 = 46; pub const _RPC_NETDB_H: u32 = 1; -pub const _PATH_HEQUIV: &[u8; 17usize] = b"/etc/hosts.equiv\0"; -pub const _PATH_HOSTS: &[u8; 11usize] = b"/etc/hosts\0"; -pub const _PATH_NETWORKS: &[u8; 14usize] = b"/etc/networks\0"; -pub const _PATH_NSSWITCH_CONF: &[u8; 19usize] = b"/etc/nsswitch.conf\0"; -pub const _PATH_PROTOCOLS: &[u8; 15usize] = b"/etc/protocols\0"; -pub const _PATH_SERVICES: &[u8; 14usize] = b"/etc/services\0"; +pub const _PATH_HEQUIV: &[u8; 17] = b"/etc/hosts.equiv\0"; +pub const _PATH_HOSTS: &[u8; 11] = b"/etc/hosts\0"; +pub const _PATH_NETWORKS: &[u8; 14] = b"/etc/networks\0"; +pub const _PATH_NSSWITCH_CONF: &[u8; 19] = b"/etc/nsswitch.conf\0"; +pub const _PATH_PROTOCOLS: &[u8; 15] = b"/etc/protocols\0"; +pub const _PATH_SERVICES: &[u8; 14] = b"/etc/services\0"; pub const HOST_NOT_FOUND: u32 = 1; pub const TRY_AGAIN: u32 = 2; pub const NO_RECOVERY: u32 = 3; @@ -1167,9 +1167,9 @@ 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) 13.11\n\0"; -pub const EXE: &[u8; 1usize] = b"\0"; -pub const DEVNULL: &[u8; 10usize] = b"/dev/null\0"; +pub const PG_BACKEND_VERSIONSTR: &[u8; 29] = b"postgres (PostgreSQL) 13.11\n\0"; +pub const EXE: &[u8; 1] = b"\0"; +pub const DEVNULL: &[u8; 10] = b"/dev/null\0"; pub const USE_REPL_SNPRINTF: u32 = 1; pub const PG_STRERROR_R_BUFLEN: u32 = 256; pub const PG_IOLBF: u32 = 1; @@ -1723,7 +1723,7 @@ pub const TIME_UTC: u32 = 1; pub const PG_INSTR_CLOCK: u32 = 1; pub const FIELDNO_FUNCTIONCALLINFODATA_ISNULL: u32 = 4; pub const FIELDNO_FUNCTIONCALLINFODATA_ARGS: u32 = 6; -pub const PG_MAGIC_FUNCTION_NAME_STRING: &[u8; 14usize] = b"Pg_magic_func\0"; +pub const PG_MAGIC_FUNCTION_NAME_STRING: &[u8; 14] = b"Pg_magic_func\0"; pub const AGG_CONTEXT_AGGREGATE: u32 = 1; pub const AGG_CONTEXT_WINDOW: u32 = 2; pub const PARAM_FLAG_CONST: u32 = 1; @@ -1852,12 +1852,12 @@ pub const DSM_IMPL_SYSV: u32 = 2; pub const DSM_IMPL_WINDOWS: u32 = 3; pub const DSM_IMPL_MMAP: u32 = 4; pub const DEFAULT_DYNAMIC_SHARED_MEMORY_TYPE: u32 = 1; -pub const PG_DYNSHMEM_DIR: &[u8; 12usize] = b"pg_dynshmem\0"; -pub const PG_DYNSHMEM_MMAP_FILE_PREFIX: &[u8; 6usize] = b"mmap.\0"; +pub const PG_DYNSHMEM_DIR: &[u8; 12] = b"pg_dynshmem\0"; +pub const PG_DYNSHMEM_MMAP_FILE_PREFIX: &[u8; 6] = b"mmap.\0"; pub const DSM_CREATE_NULL_IF_MAXSEGMENTS: u32 = 1; pub const DSM_HANDLE_INVALID: u32 = 0; pub const SIZEOF_DSA_POINTER: u32 = 8; -pub const DSA_POINTER_FORMAT: &[u8; 7usize] = b"%016lx\0"; +pub const DSA_POINTER_FORMAT: &[u8; 7] = b"%016lx\0"; pub const DSA_ALLOC_HUGE: u32 = 1; pub const DSA_ALLOC_NO_OOM: u32 = 2; pub const DSA_ALLOC_ZERO: u32 = 4; @@ -1880,8 +1880,8 @@ pub const NO_MAX_DSIZE: i32 = -1; pub const _DIRENT_H: u32 = 1; pub const _DIRENT_MATCHES_DIRENT64: u32 = 1; pub const MAXNAMLEN: u32 = 255; -pub const PG_TEMP_FILES_DIR: &[u8; 10usize] = b"pgsql_tmp\0"; -pub const PG_TEMP_FILE_PREFIX: &[u8; 10usize] = b"pgsql_tmp\0"; +pub const PG_TEMP_FILES_DIR: &[u8; 10] = b"pgsql_tmp\0"; +pub const PG_TEMP_FILE_PREFIX: &[u8; 10] = b"pgsql_tmp\0"; pub const SHARED_TUPLESTORE_SINGLE_PASS: u32 = 1; pub const MAX_TIMESTAMP_PRECISION: u32 = 6; pub const MAX_INTERVAL_PRECISION: u32 = 6; @@ -1908,7 +1908,7 @@ pub const POSTGRES_EPOCH_JDATE: u32 = 2451545; pub const DATETIME_MIN_JULIAN: u32 = 0; pub const DATE_END_JULIAN: u32 = 2147483494; pub const TIMESTAMP_END_JULIAN: u32 = 109203528; -pub const RELCACHE_INIT_FILENAME: &[u8; 17usize] = b"pg_internal.init\0"; +pub const RELCACHE_INIT_FILENAME: &[u8; 17] = b"pg_internal.init\0"; pub const INDEX_SIZE_MASK: u32 = 8191; pub const INDEX_AM_RESERVED_BIT: u32 = 8192; pub const INDEX_VAR_MASK: u32 = 16384; @@ -2131,7 +2131,7 @@ pub const AUTH_REQ_SASL_CONT: u32 = 11; pub const AUTH_REQ_SASL_FIN: u32 = 12; pub const MIN_XFN_CHARS: u32 = 16; pub const MAX_XFN_CHARS: u32 = 40; -pub const VALID_XFN_CHARS: &[u8; 40usize] = b"0123456789ABCDEF.history.backup.partial\0"; +pub const VALID_XFN_CHARS: &[u8; 40] = b"0123456789ABCDEF.history.backup.partial\0"; pub const CATALOG_VERSION_NO: u32 = 202007201; pub const OIDCHARS: u32 = 10; pub const FORKNAMECHARS: u32 = 4; @@ -2208,10 +2208,10 @@ pub const INVALID_PGPROCNO: u32 = 2147483647; pub const DELAY_CHKPT_START: u32 = 1; pub const DELAY_CHKPT_COMPLETE: u32 = 2; pub const NUM_AUXILIARY_PROCS: u32 = 4; -pub const PGSTAT_STAT_PERMANENT_DIRECTORY: &[u8; 8usize] = b"pg_stat\0"; -pub const PGSTAT_STAT_PERMANENT_FILENAME: &[u8; 20usize] = b"pg_stat/global.stat\0"; -pub const PGSTAT_STAT_PERMANENT_TMPFILE: &[u8; 19usize] = b"pg_stat/global.tmp\0"; -pub const PG_STAT_TMP_DIR: &[u8; 12usize] = b"pg_stat_tmp\0"; +pub const PGSTAT_STAT_PERMANENT_DIRECTORY: &[u8; 8] = b"pg_stat\0"; +pub const PGSTAT_STAT_PERMANENT_FILENAME: &[u8; 20] = b"pg_stat/global.stat\0"; +pub const PGSTAT_STAT_PERMANENT_TMPFILE: &[u8; 19] = b"pg_stat/global.tmp\0"; +pub const PG_STAT_TMP_DIR: &[u8; 12] = b"pg_stat_tmp\0"; pub const PGSTAT_MAX_MSG_SIZE: u32 = 1000; pub const PGSTAT_FILE_FORMAT_ID: u32 = 27638941; pub const PG_WAIT_LWLOCK: u32 = 16777216; @@ -2256,14 +2256,14 @@ pub const CHECKPOINT_CAUSE_XLOG: u32 = 128; pub const CHECKPOINT_CAUSE_TIME: u32 = 256; pub const XLOG_INCLUDE_ORIGIN: u32 = 1; pub const XLOG_MARK_UNIMPORTANT: u32 = 2; -pub const RECOVERY_SIGNAL_FILE: &[u8; 16usize] = b"recovery.signal\0"; -pub const STANDBY_SIGNAL_FILE: &[u8; 15usize] = b"standby.signal\0"; -pub const BACKUP_LABEL_FILE: &[u8; 13usize] = b"backup_label\0"; -pub const BACKUP_LABEL_OLD: &[u8; 17usize] = b"backup_label.old\0"; -pub const TABLESPACE_MAP: &[u8; 15usize] = b"tablespace_map\0"; -pub const TABLESPACE_MAP_OLD: &[u8; 19usize] = b"tablespace_map.old\0"; -pub const PROMOTE_SIGNAL_FILE: &[u8; 8usize] = b"promote\0"; -pub const FALLBACK_PROMOTE_SIGNAL_FILE: &[u8; 17usize] = b"fallback_promote\0"; +pub const RECOVERY_SIGNAL_FILE: &[u8; 16] = b"recovery.signal\0"; +pub const STANDBY_SIGNAL_FILE: &[u8; 15] = b"standby.signal\0"; +pub const BACKUP_LABEL_FILE: &[u8; 13] = b"backup_label\0"; +pub const BACKUP_LABEL_OLD: &[u8; 17] = b"backup_label.old\0"; +pub const TABLESPACE_MAP: &[u8; 15] = b"tablespace_map\0"; +pub const TABLESPACE_MAP_OLD: &[u8; 19] = b"tablespace_map.old\0"; +pub const PROMOTE_SIGNAL_FILE: &[u8; 8] = b"promote\0"; +pub const FALLBACK_PROMOTE_SIGNAL_FILE: &[u8; 17] = b"fallback_promote\0"; pub const XLOG_PAGE_MAGIC: u32 = 53510; pub const XLP_FIRST_IS_CONTRECORD: u32 = 1; pub const XLP_LONG_HEADER: u32 = 2; @@ -2274,8 +2274,8 @@ pub const WalSegMinSize: u32 = 1048576; pub const WalSegMaxSize: u32 = 1073741824; pub const DEFAULT_MIN_WAL_SEGS: u32 = 5; pub const DEFAULT_MAX_WAL_SEGS: u32 = 64; -pub const XLOGDIR: &[u8; 7usize] = b"pg_wal\0"; -pub const XLOG_CONTROL_FILE: &[u8; 18usize] = b"global/pg_control\0"; +pub const XLOGDIR: &[u8; 7] = b"pg_wal\0"; +pub const XLOG_CONTROL_FILE: &[u8; 18] = b"global/pg_control\0"; pub const MAXFNAMELEN: u32 = 64; pub const XLOG_FNAME_LEN: u32 = 24; pub const RelationRelationId: Oid = Oid(1259); @@ -2404,7 +2404,7 @@ pub const F_HAS_GARBAGE: u32 = 16; pub const GIST_PAGE_ID: u32 = 65409; pub const EOH_HEADER_MAGIC: i32 = -1; pub const EA_MAGIC: u32 = 689375833; -pub const PG_AUTOCONF_FILENAME: &[u8; 21usize] = b"postgresql.auto.conf\0"; +pub const PG_AUTOCONF_FILENAME: &[u8; 21] = b"postgresql.auto.conf\0"; pub const GUC_QUALIFIER_SEPARATOR: u8 = 46u8; pub const GUC_LIST_INPUT: u32 = 1; pub const GUC_LIST_QUOTE: u32 = 2; @@ -2430,7 +2430,7 @@ pub const GUC_UNIT_MIN: u32 = 196608; pub const GUC_UNIT_TIME: u32 = 983040; pub const GUC_EXPLAIN: u32 = 1048576; pub const GUC_UNIT: u32 = 1044480; -pub const DEFAULT_TABLE_ACCESS_METHOD: &[u8; 5usize] = b"heap\0"; +pub const DEFAULT_TABLE_ACCESS_METHOD: &[u8; 5] = b"heap\0"; pub const TABLE_INSERT_SKIP_FSM: u32 = 2; pub const TABLE_INSERT_FROZEN: u32 = 4; pub const TABLE_INSERT_NO_LOGICAL: u32 = 8; @@ -2449,33 +2449,33 @@ pub const INTERVAL_FULL_RANGE: u32 = 32767; pub const INTERVAL_RANGE_MASK: u32 = 32767; pub const INTERVAL_FULL_PRECISION: u32 = 65535; pub const INTERVAL_PRECISION_MASK: u32 = 65535; -pub const DAGO: &[u8; 4usize] = b"ago\0"; -pub const DCURRENT: &[u8; 8usize] = b"current\0"; -pub const EPOCH: &[u8; 6usize] = b"epoch\0"; -pub const INVALID: &[u8; 8usize] = b"invalid\0"; -pub const EARLY: &[u8; 10usize] = b"-infinity\0"; -pub const LATE: &[u8; 9usize] = b"infinity\0"; -pub const NOW: &[u8; 4usize] = b"now\0"; -pub const TODAY: &[u8; 6usize] = b"today\0"; -pub const TOMORROW: &[u8; 9usize] = b"tomorrow\0"; -pub const YESTERDAY: &[u8; 10usize] = b"yesterday\0"; -pub const ZULU: &[u8; 5usize] = b"zulu\0"; -pub const DMICROSEC: &[u8; 8usize] = b"usecond\0"; -pub const DMILLISEC: &[u8; 8usize] = b"msecond\0"; -pub const DSECOND: &[u8; 7usize] = b"second\0"; -pub const DMINUTE: &[u8; 7usize] = b"minute\0"; -pub const DHOUR: &[u8; 5usize] = b"hour\0"; -pub const DDAY: &[u8; 4usize] = b"day\0"; -pub const DWEEK: &[u8; 5usize] = b"week\0"; -pub const DMONTH: &[u8; 6usize] = b"month\0"; -pub const DQUARTER: &[u8; 8usize] = b"quarter\0"; -pub const DYEAR: &[u8; 5usize] = b"year\0"; -pub const DDECADE: &[u8; 7usize] = b"decade\0"; -pub const DCENTURY: &[u8; 8usize] = b"century\0"; -pub const DMILLENNIUM: &[u8; 11usize] = b"millennium\0"; -pub const DA_D: &[u8; 3usize] = b"ad\0"; -pub const DB_C: &[u8; 3usize] = b"bc\0"; -pub const DTIMEZONE: &[u8; 9usize] = b"timezone\0"; +pub const DAGO: &[u8; 4] = b"ago\0"; +pub const DCURRENT: &[u8; 8] = b"current\0"; +pub const EPOCH: &[u8; 6] = b"epoch\0"; +pub const INVALID: &[u8; 8] = b"invalid\0"; +pub const EARLY: &[u8; 10] = b"-infinity\0"; +pub const LATE: &[u8; 9] = b"infinity\0"; +pub const NOW: &[u8; 4] = b"now\0"; +pub const TODAY: &[u8; 6] = b"today\0"; +pub const TOMORROW: &[u8; 9] = b"tomorrow\0"; +pub const YESTERDAY: &[u8; 10] = b"yesterday\0"; +pub const ZULU: &[u8; 5] = b"zulu\0"; +pub const DMICROSEC: &[u8; 8] = b"usecond\0"; +pub const DMILLISEC: &[u8; 8] = b"msecond\0"; +pub const DSECOND: &[u8; 7] = b"second\0"; +pub const DMINUTE: &[u8; 7] = b"minute\0"; +pub const DHOUR: &[u8; 5] = b"hour\0"; +pub const DDAY: &[u8; 4] = b"day\0"; +pub const DWEEK: &[u8; 5] = b"week\0"; +pub const DMONTH: &[u8; 6] = b"month\0"; +pub const DQUARTER: &[u8; 8] = b"quarter\0"; +pub const DYEAR: &[u8; 5] = b"year\0"; +pub const DDECADE: &[u8; 7] = b"decade\0"; +pub const DCENTURY: &[u8; 8] = b"century\0"; +pub const DMILLENNIUM: &[u8; 11] = b"millennium\0"; +pub const DA_D: &[u8; 3] = b"ad\0"; +pub const DB_C: &[u8; 3] = b"bc\0"; +pub const DTIMEZONE: &[u8; 9] = b"timezone\0"; pub const AM: u32 = 0; pub const PM: u32 = 1; pub const HR24: u32 = 2; @@ -2589,7 +2589,7 @@ pub const PERFORM_DELETION_QUIETLY: u32 = 4; pub const PERFORM_DELETION_SKIP_ORIGINAL: u32 = 8; pub const PERFORM_DELETION_SKIP_EXTENSIONS: u32 = 16; pub const PERFORM_DELETION_CONCURRENT_LOCK: u32 = 32; -pub const DEFAULT_INDEX_TYPE: &[u8; 6usize] = b"btree\0"; +pub const DEFAULT_INDEX_TYPE: &[u8; 6] = b"btree\0"; pub const INDEX_CREATE_IS_PRIMARY: u32 = 1; pub const INDEX_CREATE_ADD_CONSTRAINT: u32 = 2; pub const INDEX_CREATE_SKIP_BUILD: u32 = 4; @@ -2935,7 +2935,7 @@ pub const ACL_USAGE_CHR: u8 = 85u8; pub const ACL_CREATE_CHR: u8 = 67u8; pub const ACL_CREATE_TEMP_CHR: u8 = 84u8; pub const ACL_CONNECT_CHR: u8 = 99u8; -pub const ACL_ALL_RIGHTS_STR: &[u8; 13usize] = b"arwdDxtXUCTc\0"; +pub const ACL_ALL_RIGHTS_STR: &[u8; 13] = b"arwdDxtXUCTc\0"; pub const ACL_ALL_RIGHTS_COLUMN: u32 = 39; pub const ACL_ALL_RIGHTS_RELATION: u32 = 127; pub const ACL_ALL_RIGHTS_SEQUENCE: u32 = 262; diff --git a/pgrx-pg-sys/src/pg14.rs b/pgrx-pg-sys/src/pg14.rs index c758770c9..cfe32d7a7 100644 --- a/pgrx-pg-sys/src/pg14.rs +++ b/pgrx-pg-sys/src/pg14.rs @@ -164,9 +164,9 @@ 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 ; 108usize] = b" '--prefix=/home/zombodb/.pgrx/14.8/pgrx-install' '--with-pgport=28814' '--enable-debug' '--enable-cassert'\0" ; +pub const CONFIGURE_ARGS : & [u8 ; 108] = b" '--prefix=/home/zombodb/.pgrx/14.8/pgrx-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 DEF_PGPORT_STR: &[u8; 6] = b"28814\0"; pub const ENABLE_THREAD_SAFETY: u32 = 1; pub const HAVE_APPEND_HISTORY: u32 = 1; pub const HAVE_ATOMICS: u32 = 1; @@ -308,23 +308,23 @@ pub const HAVE__BUILTIN_TYPES_COMPATIBLE_P: u32 = 1; pub const HAVE__BUILTIN_UNREACHABLE: u32 = 1; pub const HAVE__GET_CPUID: u32 = 1; pub const HAVE__STATIC_ASSERT: u32 = 1; -pub const INT64_MODIFIER: &[u8; 2usize] = b"l\0"; +pub const INT64_MODIFIER: &[u8; 2] = b"l\0"; 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.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"14.8\0"; -pub const PG_KRB_SRVNAM: &[u8; 9usize] = b"postgres\0"; -pub const PG_MAJORVERSION: &[u8; 3usize] = b"14\0"; +pub const PACKAGE_BUGREPORT: &[u8; 32] = b"pgsql-bugs@lists.postgresql.org\0"; +pub const PACKAGE_NAME: &[u8; 11] = b"PostgreSQL\0"; +pub const PACKAGE_STRING: &[u8; 16] = b"PostgreSQL 14.8\0"; +pub const PACKAGE_TARNAME: &[u8; 11] = b"postgresql\0"; +pub const PACKAGE_URL: &[u8; 28] = b"https://www.postgresql.org/\0"; +pub const PACKAGE_VERSION: &[u8; 5] = b"14.8\0"; +pub const PG_KRB_SRVNAM: &[u8; 9] = b"postgres\0"; +pub const PG_MAJORVERSION: &[u8; 3] = b"14\0"; pub const PG_MAJORVERSION_NUM: u32 = 14; pub const PG_MINORVERSION_NUM: u32 = 8; pub const PG_USE_STDBOOL: u32 = 1; -pub const PG_VERSION: &[u8; 5usize] = b"14.8\0"; +pub const PG_VERSION: &[u8; 5] = b"14.8\0"; pub const PG_VERSION_NUM: u32 = 140008; -pub const PG_VERSION_STR : & [u8 ; 102usize] = b"PostgreSQL 14.8 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0, 64-bit\0" ; +pub const PG_VERSION_STR : & [u8 ; 104] = b"PostgreSQL 14.8 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0, 64-bit\0" ; pub const RELSEG_SIZE: u32 = 131072; pub const SIZEOF_BOOL: u32 = 1; pub const SIZEOF_LONG: u32 = 8; @@ -354,8 +354,8 @@ pub const DEFAULT_BACKEND_FLUSH_AFTER: u32 = 0; pub const DEFAULT_BGWRITER_FLUSH_AFTER: u32 = 64; pub const DEFAULT_CHECKPOINT_FLUSH_AFTER: u32 = 32; pub const WRITEBACK_MAX_PENDING_FLUSHES: u32 = 256; -pub const DEFAULT_PGSOCKET_DIR: &[u8; 5usize] = b"/tmp\0"; -pub const DEFAULT_EVENT_SOURCE: &[u8; 11usize] = b"PostgreSQL\0"; +pub const DEFAULT_PGSOCKET_DIR: &[u8; 5] = b"/tmp\0"; +pub const DEFAULT_EVENT_SOURCE: &[u8; 11] = b"PostgreSQL\0"; pub const PG_CACHE_LINE_SIZE: u32 = 128; pub const TRACE_SORT: u32 = 1; pub const _STDIO_H: u32 = 1; @@ -431,7 +431,7 @@ pub const EOF: i32 = -1; pub const SEEK_SET: u32 = 0; pub const SEEK_CUR: u32 = 1; pub const SEEK_END: u32 = 2; -pub const P_tmpdir: &[u8; 5usize] = b"/tmp\0"; +pub const P_tmpdir: &[u8; 5] = b"/tmp\0"; pub const _BITS_STDIO_LIM_H: u32 = 1; pub const L_tmpnam: u32 = 20; pub const TMP_MAX: u32 = 238328; @@ -739,8 +739,8 @@ pub const HAVE_PRAGMA_GCC_SYSTEM_HEADER: u32 = 1; pub const true_: u32 = 1; pub const false_: u32 = 0; pub const __bool_true_false_are_defined: u32 = 1; -pub const INT64_FORMAT: &[u8; 4usize] = b"%ld\0"; -pub const UINT64_FORMAT: &[u8; 4usize] = b"%lu\0"; +pub const INT64_FORMAT: &[u8; 4] = b"%ld\0"; +pub const UINT64_FORMAT: &[u8; 4] = b"%lu\0"; pub const HAVE_INT128: u32 = 1; pub const PG_INT8_MIN: i32 = -128; pub const PG_INT8_MAX: u32 = 127; @@ -759,9 +759,9 @@ pub const STATUS_OK: u32 = 0; pub const STATUS_ERROR: i32 = -1; pub const STATUS_EOF: i32 = -2; pub const PG_BINARY: u32 = 0; -pub const PG_BINARY_A: &[u8; 2usize] = b"a\0"; -pub const PG_BINARY_R: &[u8; 2usize] = b"r\0"; -pub const PG_BINARY_W: &[u8; 2usize] = b"w\0"; +pub const PG_BINARY_A: &[u8; 2] = b"a\0"; +pub const PG_BINARY_R: &[u8; 2] = b"r\0"; +pub const PG_BINARY_W: &[u8; 2] = b"w\0"; pub const _CTYPE_H: u32 = 1; pub const _NETDB_H: u32 = 1; pub const _NETINET_IN_H: u32 = 1; @@ -1132,12 +1132,12 @@ pub const IN_LOOPBACKNET: u32 = 127; pub const INET_ADDRSTRLEN: u32 = 16; pub const INET6_ADDRSTRLEN: u32 = 46; pub const _RPC_NETDB_H: u32 = 1; -pub const _PATH_HEQUIV: &[u8; 17usize] = b"/etc/hosts.equiv\0"; -pub const _PATH_HOSTS: &[u8; 11usize] = b"/etc/hosts\0"; -pub const _PATH_NETWORKS: &[u8; 14usize] = b"/etc/networks\0"; -pub const _PATH_NSSWITCH_CONF: &[u8; 19usize] = b"/etc/nsswitch.conf\0"; -pub const _PATH_PROTOCOLS: &[u8; 15usize] = b"/etc/protocols\0"; -pub const _PATH_SERVICES: &[u8; 14usize] = b"/etc/services\0"; +pub const _PATH_HEQUIV: &[u8; 17] = b"/etc/hosts.equiv\0"; +pub const _PATH_HOSTS: &[u8; 11] = b"/etc/hosts\0"; +pub const _PATH_NETWORKS: &[u8; 14] = b"/etc/networks\0"; +pub const _PATH_NSSWITCH_CONF: &[u8; 19] = b"/etc/nsswitch.conf\0"; +pub const _PATH_PROTOCOLS: &[u8; 15] = b"/etc/protocols\0"; +pub const _PATH_SERVICES: &[u8; 14] = b"/etc/services\0"; pub const HOST_NOT_FOUND: u32 = 1; pub const TRY_AGAIN: u32 = 2; pub const NO_RECOVERY: u32 = 3; @@ -1172,9 +1172,9 @@ 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.8\n\0"; -pub const EXE: &[u8; 1usize] = b"\0"; -pub const DEVNULL: &[u8; 10usize] = b"/dev/null\0"; +pub const PG_BACKEND_VERSIONSTR: &[u8; 28] = b"postgres (PostgreSQL) 14.8\n\0"; +pub const EXE: &[u8; 1] = b"\0"; +pub const DEVNULL: &[u8; 10] = b"/dev/null\0"; pub const USE_REPL_SNPRINTF: u32 = 1; pub const PG_STRERROR_R_BUFLEN: u32 = 256; pub const PG_IOLBF: u32 = 1; @@ -1758,7 +1758,7 @@ pub const TIME_UTC: u32 = 1; pub const PG_INSTR_CLOCK: u32 = 1; pub const FIELDNO_FUNCTIONCALLINFODATA_ISNULL: u32 = 4; pub const FIELDNO_FUNCTIONCALLINFODATA_ARGS: u32 = 6; -pub const PG_MAGIC_FUNCTION_NAME_STRING: &[u8; 14usize] = b"Pg_magic_func\0"; +pub const PG_MAGIC_FUNCTION_NAME_STRING: &[u8; 14] = b"Pg_magic_func\0"; pub const AGG_CONTEXT_AGGREGATE: u32 = 1; pub const AGG_CONTEXT_WINDOW: u32 = 2; pub const PARAM_FLAG_CONST: u32 = 1; @@ -1890,12 +1890,12 @@ pub const DSM_IMPL_SYSV: u32 = 2; pub const DSM_IMPL_WINDOWS: u32 = 3; pub const DSM_IMPL_MMAP: u32 = 4; pub const DEFAULT_DYNAMIC_SHARED_MEMORY_TYPE: u32 = 1; -pub const PG_DYNSHMEM_DIR: &[u8; 12usize] = b"pg_dynshmem\0"; -pub const PG_DYNSHMEM_MMAP_FILE_PREFIX: &[u8; 6usize] = b"mmap.\0"; +pub const PG_DYNSHMEM_DIR: &[u8; 12] = b"pg_dynshmem\0"; +pub const PG_DYNSHMEM_MMAP_FILE_PREFIX: &[u8; 6] = b"mmap.\0"; pub const DSM_CREATE_NULL_IF_MAXSEGMENTS: u32 = 1; pub const DSM_HANDLE_INVALID: u32 = 0; pub const SIZEOF_DSA_POINTER: u32 = 8; -pub const DSA_POINTER_FORMAT: &[u8; 7usize] = b"%016lx\0"; +pub const DSA_POINTER_FORMAT: &[u8; 7] = b"%016lx\0"; pub const DSA_ALLOC_HUGE: u32 = 1; pub const DSA_ALLOC_NO_OOM: u32 = 2; pub const DSA_ALLOC_ZERO: u32 = 4; @@ -1918,8 +1918,8 @@ pub const NO_MAX_DSIZE: i32 = -1; pub const _DIRENT_H: u32 = 1; pub const _DIRENT_MATCHES_DIRENT64: u32 = 1; pub const MAXNAMLEN: u32 = 255; -pub const PG_TEMP_FILES_DIR: &[u8; 10usize] = b"pgsql_tmp\0"; -pub const PG_TEMP_FILE_PREFIX: &[u8; 10usize] = b"pgsql_tmp\0"; +pub const PG_TEMP_FILES_DIR: &[u8; 10] = b"pgsql_tmp\0"; +pub const PG_TEMP_FILE_PREFIX: &[u8; 10] = b"pgsql_tmp\0"; pub const SHARED_TUPLESTORE_SINGLE_PASS: u32 = 1; pub const MAX_TIMESTAMP_PRECISION: u32 = 6; pub const MAX_INTERVAL_PRECISION: u32 = 6; @@ -1946,7 +1946,7 @@ pub const POSTGRES_EPOCH_JDATE: u32 = 2451545; pub const DATETIME_MIN_JULIAN: u32 = 0; pub const DATE_END_JULIAN: u32 = 2147483494; pub const TIMESTAMP_END_JULIAN: u32 = 109203528; -pub const RELCACHE_INIT_FILENAME: &[u8; 17usize] = b"pg_internal.init\0"; +pub const RELCACHE_INIT_FILENAME: &[u8; 17] = b"pg_internal.init\0"; pub const INDEX_SIZE_MASK: u32 = 8191; pub const INDEX_AM_RESERVED_BIT: u32 = 8192; pub const INDEX_VAR_MASK: u32 = 16384; @@ -2147,7 +2147,7 @@ pub const SECURITY_RESTRICTED_OPERATION: u32 = 2; pub const SECURITY_NOFORCE_RLS: u32 = 4; pub const MIN_XFN_CHARS: u32 = 16; pub const MAX_XFN_CHARS: u32 = 40; -pub const VALID_XFN_CHARS: &[u8; 40usize] = b"0123456789ABCDEF.history.backup.partial\0"; +pub const VALID_XFN_CHARS: &[u8; 40] = b"0123456789ABCDEF.history.backup.partial\0"; pub const PGSTAT_NUM_PROGRESS_PARAM: u32 = 20; pub const _SYS_UN_H: u32 = 1; pub const MAX_STARTUP_PACKET_LENGTH: u32 = 10000; @@ -2173,10 +2173,10 @@ pub const PG_WAIT_EXTENSION: u32 = 117440512; pub const PG_WAIT_IPC: u32 = 134217728; pub const PG_WAIT_TIMEOUT: u32 = 150994944; pub const PG_WAIT_IO: u32 = 167772160; -pub const PGSTAT_STAT_PERMANENT_DIRECTORY: &[u8; 8usize] = b"pg_stat\0"; -pub const PGSTAT_STAT_PERMANENT_FILENAME: &[u8; 20usize] = b"pg_stat/global.stat\0"; -pub const PGSTAT_STAT_PERMANENT_TMPFILE: &[u8; 19usize] = b"pg_stat/global.tmp\0"; -pub const PG_STAT_TMP_DIR: &[u8; 12usize] = b"pg_stat_tmp\0"; +pub const PGSTAT_STAT_PERMANENT_DIRECTORY: &[u8; 8] = b"pg_stat\0"; +pub const PGSTAT_STAT_PERMANENT_FILENAME: &[u8; 20] = b"pg_stat/global.stat\0"; +pub const PGSTAT_STAT_PERMANENT_TMPFILE: &[u8; 19] = b"pg_stat/global.tmp\0"; +pub const PG_STAT_TMP_DIR: &[u8; 12] = b"pg_stat_tmp\0"; pub const PGSTAT_MAX_MSG_SIZE: u32 = 1000; pub const PGSTAT_FILE_FORMAT_ID: u32 = 27638946; pub const SK_ISNULL: u32 = 1; @@ -2244,13 +2244,13 @@ pub const CHECKPOINT_CAUSE_TIME: u32 = 256; pub const XLOG_INCLUDE_ORIGIN: u32 = 1; pub const XLOG_MARK_UNIMPORTANT: u32 = 2; pub const XLOG_INCLUDE_XID: u32 = 4; -pub const RECOVERY_SIGNAL_FILE: &[u8; 16usize] = b"recovery.signal\0"; -pub const STANDBY_SIGNAL_FILE: &[u8; 15usize] = b"standby.signal\0"; -pub const BACKUP_LABEL_FILE: &[u8; 13usize] = b"backup_label\0"; -pub const BACKUP_LABEL_OLD: &[u8; 17usize] = b"backup_label.old\0"; -pub const TABLESPACE_MAP: &[u8; 15usize] = b"tablespace_map\0"; -pub const TABLESPACE_MAP_OLD: &[u8; 19usize] = b"tablespace_map.old\0"; -pub const PROMOTE_SIGNAL_FILE: &[u8; 8usize] = b"promote\0"; +pub const RECOVERY_SIGNAL_FILE: &[u8; 16] = b"recovery.signal\0"; +pub const STANDBY_SIGNAL_FILE: &[u8; 15] = b"standby.signal\0"; +pub const BACKUP_LABEL_FILE: &[u8; 13] = b"backup_label\0"; +pub const BACKUP_LABEL_OLD: &[u8; 17] = b"backup_label.old\0"; +pub const TABLESPACE_MAP: &[u8; 15] = b"tablespace_map\0"; +pub const TABLESPACE_MAP_OLD: &[u8; 19] = b"tablespace_map.old\0"; +pub const PROMOTE_SIGNAL_FILE: &[u8; 8] = b"promote\0"; pub const XLOG_PAGE_MAGIC: u32 = 53517; pub const XLP_FIRST_IS_CONTRECORD: u32 = 1; pub const XLP_LONG_HEADER: u32 = 2; @@ -2261,8 +2261,8 @@ pub const WalSegMinSize: u32 = 1048576; pub const WalSegMaxSize: u32 = 1073741824; pub const DEFAULT_MIN_WAL_SEGS: u32 = 5; pub const DEFAULT_MAX_WAL_SEGS: u32 = 64; -pub const XLOGDIR: &[u8; 7usize] = b"pg_wal\0"; -pub const XLOG_CONTROL_FILE: &[u8; 18usize] = b"global/pg_control\0"; +pub const XLOGDIR: &[u8; 7] = b"pg_wal\0"; +pub const XLOG_CONTROL_FILE: &[u8; 18] = b"global/pg_control\0"; pub const MAXFNAMELEN: u32 = 64; pub const XLOG_FNAME_LEN: u32 = 24; pub const RelationRelationId: Oid = Oid(1259); @@ -2434,7 +2434,7 @@ pub const XACT_COMPLETION_FORCE_SYNC_COMMIT: u32 = 2147483648; pub const EOH_HEADER_MAGIC: i32 = -1; pub const MAXDIM: u32 = 6; pub const EA_MAGIC: u32 = 689375833; -pub const PG_AUTOCONF_FILENAME: &[u8; 21usize] = b"postgresql.auto.conf\0"; +pub const PG_AUTOCONF_FILENAME: &[u8; 21] = b"postgresql.auto.conf\0"; pub const GUC_QUALIFIER_SEPARATOR: u8 = 46u8; pub const GUC_LIST_INPUT: u32 = 1; pub const GUC_LIST_QUOTE: u32 = 2; @@ -2460,7 +2460,7 @@ pub const GUC_UNIT_MIN: u32 = 196608; pub const GUC_UNIT_TIME: u32 = 983040; pub const GUC_EXPLAIN: u32 = 1048576; pub const GUC_UNIT: u32 = 1044480; -pub const DEFAULT_TABLE_ACCESS_METHOD: &[u8; 5usize] = b"heap\0"; +pub const DEFAULT_TABLE_ACCESS_METHOD: &[u8; 5] = b"heap\0"; pub const TABLE_INSERT_SKIP_FSM: u32 = 2; pub const TABLE_INSERT_FROZEN: u32 = 4; pub const TABLE_INSERT_NO_LOGICAL: u32 = 8; @@ -2497,7 +2497,7 @@ pub const PERFORM_DELETION_QUIETLY: u32 = 4; pub const PERFORM_DELETION_SKIP_ORIGINAL: u32 = 8; pub const PERFORM_DELETION_SKIP_EXTENSIONS: u32 = 16; pub const PERFORM_DELETION_CONCURRENT_LOCK: u32 = 32; -pub const DEFAULT_INDEX_TYPE: &[u8; 6usize] = b"btree\0"; +pub const DEFAULT_INDEX_TYPE: &[u8; 6] = b"btree\0"; pub const REINDEXOPT_VERBOSE: u32 = 1; pub const REINDEXOPT_REPORT_PROGRESS: u32 = 2; pub const REINDEXOPT_MISSING_OK: u32 = 4; @@ -2785,7 +2785,7 @@ pub const ACL_USAGE_CHR: u8 = 85u8; pub const ACL_CREATE_CHR: u8 = 67u8; pub const ACL_CREATE_TEMP_CHR: u8 = 84u8; pub const ACL_CONNECT_CHR: u8 = 99u8; -pub const ACL_ALL_RIGHTS_STR: &[u8; 13usize] = b"arwdDxtXUCTc\0"; +pub const ACL_ALL_RIGHTS_STR: &[u8; 13] = b"arwdDxtXUCTc\0"; pub const ACL_ALL_RIGHTS_COLUMN: u32 = 39; pub const ACL_ALL_RIGHTS_RELATION: u32 = 127; pub const ACL_ALL_RIGHTS_SEQUENCE: u32 = 262; @@ -3202,33 +3202,33 @@ pub const FORMAT_TYPE_ALLOW_INVALID: u32 = 2; pub const FORMAT_TYPE_FORCE_QUALIFY: u32 = 4; pub const FORMAT_TYPE_INVALID_AS_NULL: u32 = 8; pub const MAX_TIME_PRECISION: u32 = 6; -pub const DAGO: &[u8; 4usize] = b"ago\0"; -pub const DCURRENT: &[u8; 8usize] = b"current\0"; -pub const EPOCH: &[u8; 6usize] = b"epoch\0"; -pub const INVALID: &[u8; 8usize] = b"invalid\0"; -pub const EARLY: &[u8; 10usize] = b"-infinity\0"; -pub const LATE: &[u8; 9usize] = b"infinity\0"; -pub const NOW: &[u8; 4usize] = b"now\0"; -pub const TODAY: &[u8; 6usize] = b"today\0"; -pub const TOMORROW: &[u8; 9usize] = b"tomorrow\0"; -pub const YESTERDAY: &[u8; 10usize] = b"yesterday\0"; -pub const ZULU: &[u8; 5usize] = b"zulu\0"; -pub const DMICROSEC: &[u8; 8usize] = b"usecond\0"; -pub const DMILLISEC: &[u8; 8usize] = b"msecond\0"; -pub const DSECOND: &[u8; 7usize] = b"second\0"; -pub const DMINUTE: &[u8; 7usize] = b"minute\0"; -pub const DHOUR: &[u8; 5usize] = b"hour\0"; -pub const DDAY: &[u8; 4usize] = b"day\0"; -pub const DWEEK: &[u8; 5usize] = b"week\0"; -pub const DMONTH: &[u8; 6usize] = b"month\0"; -pub const DQUARTER: &[u8; 8usize] = b"quarter\0"; -pub const DYEAR: &[u8; 5usize] = b"year\0"; -pub const DDECADE: &[u8; 7usize] = b"decade\0"; -pub const DCENTURY: &[u8; 8usize] = b"century\0"; -pub const DMILLENNIUM: &[u8; 11usize] = b"millennium\0"; -pub const DA_D: &[u8; 3usize] = b"ad\0"; -pub const DB_C: &[u8; 3usize] = b"bc\0"; -pub const DTIMEZONE: &[u8; 9usize] = b"timezone\0"; +pub const DAGO: &[u8; 4] = b"ago\0"; +pub const DCURRENT: &[u8; 8] = b"current\0"; +pub const EPOCH: &[u8; 6] = b"epoch\0"; +pub const INVALID: &[u8; 8] = b"invalid\0"; +pub const EARLY: &[u8; 10] = b"-infinity\0"; +pub const LATE: &[u8; 9] = b"infinity\0"; +pub const NOW: &[u8; 4] = b"now\0"; +pub const TODAY: &[u8; 6] = b"today\0"; +pub const TOMORROW: &[u8; 9] = b"tomorrow\0"; +pub const YESTERDAY: &[u8; 10] = b"yesterday\0"; +pub const ZULU: &[u8; 5] = b"zulu\0"; +pub const DMICROSEC: &[u8; 8] = b"usecond\0"; +pub const DMILLISEC: &[u8; 8] = b"msecond\0"; +pub const DSECOND: &[u8; 7] = b"second\0"; +pub const DMINUTE: &[u8; 7] = b"minute\0"; +pub const DHOUR: &[u8; 5] = b"hour\0"; +pub const DDAY: &[u8; 4] = b"day\0"; +pub const DWEEK: &[u8; 5] = b"week\0"; +pub const DMONTH: &[u8; 6] = b"month\0"; +pub const DQUARTER: &[u8; 8] = b"quarter\0"; +pub const DYEAR: &[u8; 5] = b"year\0"; +pub const DDECADE: &[u8; 7] = b"decade\0"; +pub const DCENTURY: &[u8; 8] = b"century\0"; +pub const DMILLENNIUM: &[u8; 11] = b"millennium\0"; +pub const DA_D: &[u8; 3] = b"ad\0"; +pub const DB_C: &[u8; 3] = b"bc\0"; +pub const DTIMEZONE: &[u8; 9] = b"timezone\0"; pub const AM: u32 = 0; pub const PM: u32 = 1; pub const HR24: u32 = 2; @@ -3353,7 +3353,7 @@ pub const DEFAULT_NUM_DISTINCT: u32 = 200; pub const DEFAULT_UNK_SEL: f64 = 0.005; pub const DEFAULT_NOT_UNK_SEL: f64 = 0.995; pub const SELFLAG_USED_DEFAULT: u32 = 1; -pub const RANGE_EMPTY_LITERAL: &[u8; 6usize] = b"empty\0"; +pub const RANGE_EMPTY_LITERAL: &[u8; 6] = b"empty\0"; pub const RANGE_EMPTY: u32 = 1; pub const RANGE_LB_INC: u32 = 2; pub const RANGE_UB_INC: u32 = 4; diff --git a/pgrx-pg-sys/src/pg15.rs b/pgrx-pg-sys/src/pg15.rs index 117d015cd..590aad796 100644 --- a/pgrx-pg-sys/src/pg15.rs +++ b/pgrx-pg-sys/src/pg15.rs @@ -164,10 +164,10 @@ 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 ; 108usize] = b" '--prefix=/home/zombodb/.pgrx/15.3/pgrx-install' '--with-pgport=28815' '--enable-debug' '--enable-cassert'\0" ; +pub const CONFIGURE_ARGS : & [u8 ; 108] = b" '--prefix=/home/zombodb/.pgrx/15.3/pgrx-install' '--with-pgport=28815' '--enable-debug' '--enable-cassert'\0" ; pub const DEF_PGPORT: u32 = 28815; -pub const DEF_PGPORT_STR: &[u8; 6usize] = b"28815\0"; -pub const DLSUFFIX: &[u8; 4usize] = b".so\0"; +pub const DEF_PGPORT_STR: &[u8; 6] = b"28815\0"; +pub const DLSUFFIX: &[u8; 4] = b".so\0"; pub const ENABLE_THREAD_SAFETY: u32 = 1; pub const HAVE_APPEND_HISTORY: u32 = 1; pub const HAVE_ATOMICS: u32 = 1; @@ -311,23 +311,23 @@ pub const HAVE__BUILTIN_TYPES_COMPATIBLE_P: u32 = 1; pub const HAVE__BUILTIN_UNREACHABLE: u32 = 1; pub const HAVE__GET_CPUID: u32 = 1; pub const HAVE__STATIC_ASSERT: u32 = 1; -pub const INT64_MODIFIER: &[u8; 2usize] = b"l\0"; +pub const INT64_MODIFIER: &[u8; 2] = b"l\0"; 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 15.3\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"15.3\0"; -pub const PG_KRB_SRVNAM: &[u8; 9usize] = b"postgres\0"; -pub const PG_MAJORVERSION: &[u8; 3usize] = b"15\0"; +pub const PACKAGE_BUGREPORT: &[u8; 32] = b"pgsql-bugs@lists.postgresql.org\0"; +pub const PACKAGE_NAME: &[u8; 11] = b"PostgreSQL\0"; +pub const PACKAGE_STRING: &[u8; 16] = b"PostgreSQL 15.3\0"; +pub const PACKAGE_TARNAME: &[u8; 11] = b"postgresql\0"; +pub const PACKAGE_URL: &[u8; 28] = b"https://www.postgresql.org/\0"; +pub const PACKAGE_VERSION: &[u8; 5] = b"15.3\0"; +pub const PG_KRB_SRVNAM: &[u8; 9] = b"postgres\0"; +pub const PG_MAJORVERSION: &[u8; 3] = b"15\0"; pub const PG_MAJORVERSION_NUM: u32 = 15; pub const PG_MINORVERSION_NUM: u32 = 3; pub const PG_USE_STDBOOL: u32 = 1; -pub const PG_VERSION: &[u8; 5usize] = b"15.3\0"; +pub const PG_VERSION: &[u8; 5] = b"15.3\0"; pub const PG_VERSION_NUM: u32 = 150003; -pub const PG_VERSION_STR : & [u8 ; 102usize] = b"PostgreSQL 15.3 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0, 64-bit\0" ; +pub const PG_VERSION_STR : & [u8 ; 104] = b"PostgreSQL 15.3 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0, 64-bit\0" ; pub const RELSEG_SIZE: u32 = 131072; pub const SIZEOF_BOOL: u32 = 1; pub const SIZEOF_LONG: u32 = 8; @@ -343,7 +343,7 @@ pub const XLOG_BLCKSZ: u32 = 8192; pub const DEFAULT_XLOG_SEG_SIZE: u32 = 16777216; pub const NAMEDATALEN: u32 = 64; pub const FUNC_MAX_ARGS: u32 = 100; -pub const FMGR_ABI_EXTRA: &[u8; 11usize] = b"PostgreSQL\0"; +pub const FMGR_ABI_EXTRA: &[u8; 11] = b"PostgreSQL\0"; pub const INDEX_MAX_KEYS: u32 = 32; pub const PARTITION_MAX_KEYS: u32 = 32; pub const USE_FLOAT8_BYVAL: u32 = 1; @@ -358,8 +358,8 @@ pub const DEFAULT_BACKEND_FLUSH_AFTER: u32 = 0; pub const DEFAULT_BGWRITER_FLUSH_AFTER: u32 = 64; pub const DEFAULT_CHECKPOINT_FLUSH_AFTER: u32 = 32; pub const WRITEBACK_MAX_PENDING_FLUSHES: u32 = 256; -pub const DEFAULT_PGSOCKET_DIR: &[u8; 5usize] = b"/tmp\0"; -pub const DEFAULT_EVENT_SOURCE: &[u8; 11usize] = b"PostgreSQL\0"; +pub const DEFAULT_PGSOCKET_DIR: &[u8; 5] = b"/tmp\0"; +pub const DEFAULT_EVENT_SOURCE: &[u8; 11] = b"PostgreSQL\0"; pub const PG_CACHE_LINE_SIZE: u32 = 128; pub const TRACE_SORT: u32 = 1; pub const _STDIO_H: u32 = 1; @@ -435,7 +435,7 @@ pub const EOF: i32 = -1; pub const SEEK_SET: u32 = 0; pub const SEEK_CUR: u32 = 1; pub const SEEK_END: u32 = 2; -pub const P_tmpdir: &[u8; 5usize] = b"/tmp\0"; +pub const P_tmpdir: &[u8; 5] = b"/tmp\0"; pub const _BITS_STDIO_LIM_H: u32 = 1; pub const L_tmpnam: u32 = 20; pub const TMP_MAX: u32 = 238328; @@ -743,8 +743,8 @@ pub const HAVE_PRAGMA_GCC_SYSTEM_HEADER: u32 = 1; pub const true_: u32 = 1; pub const false_: u32 = 0; pub const __bool_true_false_are_defined: u32 = 1; -pub const INT64_FORMAT: &[u8; 4usize] = b"%ld\0"; -pub const UINT64_FORMAT: &[u8; 4usize] = b"%lu\0"; +pub const INT64_FORMAT: &[u8; 4] = b"%ld\0"; +pub const UINT64_FORMAT: &[u8; 4] = b"%lu\0"; pub const HAVE_INT128: u32 = 1; pub const PG_INT8_MIN: i32 = -128; pub const PG_INT8_MAX: u32 = 127; @@ -763,14 +763,14 @@ pub const STATUS_OK: u32 = 0; pub const STATUS_ERROR: i32 = -1; pub const STATUS_EOF: i32 = -2; pub const PG_BINARY: u32 = 0; -pub const PG_BINARY_A: &[u8; 2usize] = b"a\0"; -pub const PG_BINARY_R: &[u8; 2usize] = b"r\0"; -pub const PG_BINARY_W: &[u8; 2usize] = b"w\0"; +pub const PG_BINARY_A: &[u8; 2] = b"a\0"; +pub const PG_BINARY_R: &[u8; 2] = b"r\0"; +pub const PG_BINARY_W: &[u8; 2] = b"w\0"; pub const _CTYPE_H: u32 = 1; pub const PGINVALID_SOCKET: i32 = -1; -pub const PG_BACKEND_VERSIONSTR: &[u8; 28usize] = b"postgres (PostgreSQL) 15.3\n\0"; -pub const EXE: &[u8; 1usize] = b"\0"; -pub const DEVNULL: &[u8; 10usize] = b"/dev/null\0"; +pub const PG_BACKEND_VERSIONSTR: &[u8; 28] = b"postgres (PostgreSQL) 15.3\n\0"; +pub const EXE: &[u8; 1] = b"\0"; +pub const DEVNULL: &[u8; 10] = b"/dev/null\0"; pub const USE_REPL_SNPRINTF: u32 = 1; pub const PG_STRERROR_R_BUFLEN: u32 = 256; pub const PG_IOLBF: u32 = 1; @@ -1357,7 +1357,7 @@ pub const TIME_UTC: u32 = 1; pub const PG_INSTR_CLOCK: u32 = 1; pub const FIELDNO_FUNCTIONCALLINFODATA_ISNULL: u32 = 4; pub const FIELDNO_FUNCTIONCALLINFODATA_ARGS: u32 = 6; -pub const PG_MAGIC_FUNCTION_NAME_STRING: &[u8; 14usize] = b"Pg_magic_func\0"; +pub const PG_MAGIC_FUNCTION_NAME_STRING: &[u8; 14] = b"Pg_magic_func\0"; pub const AGG_CONTEXT_AGGREGATE: u32 = 1; pub const AGG_CONTEXT_WINDOW: u32 = 2; pub const PARAM_FLAG_CONST: u32 = 1; @@ -1552,12 +1552,12 @@ pub const DSM_IMPL_SYSV: u32 = 2; pub const DSM_IMPL_WINDOWS: u32 = 3; pub const DSM_IMPL_MMAP: u32 = 4; pub const DEFAULT_DYNAMIC_SHARED_MEMORY_TYPE: u32 = 1; -pub const PG_DYNSHMEM_DIR: &[u8; 12usize] = b"pg_dynshmem\0"; -pub const PG_DYNSHMEM_MMAP_FILE_PREFIX: &[u8; 6usize] = b"mmap.\0"; +pub const PG_DYNSHMEM_DIR: &[u8; 12] = b"pg_dynshmem\0"; +pub const PG_DYNSHMEM_MMAP_FILE_PREFIX: &[u8; 6] = b"mmap.\0"; pub const DSM_CREATE_NULL_IF_MAXSEGMENTS: u32 = 1; pub const DSM_HANDLE_INVALID: u32 = 0; pub const SIZEOF_DSA_POINTER: u32 = 8; -pub const DSA_POINTER_FORMAT: &[u8; 7usize] = b"%016lx\0"; +pub const DSA_POINTER_FORMAT: &[u8; 7] = b"%016lx\0"; pub const DSA_ALLOC_HUGE: u32 = 1; pub const DSA_ALLOC_NO_OOM: u32 = 2; pub const DSA_ALLOC_ZERO: u32 = 4; @@ -1581,8 +1581,8 @@ pub const _DIRENT_H: u32 = 1; pub const _DIRENT_MATCHES_DIRENT64: u32 = 1; pub const MAXNAMLEN: u32 = 255; pub const PG_O_DIRECT: u32 = 0; -pub const PG_TEMP_FILES_DIR: &[u8; 10usize] = b"pgsql_tmp\0"; -pub const PG_TEMP_FILE_PREFIX: &[u8; 10usize] = b"pgsql_tmp\0"; +pub const PG_TEMP_FILES_DIR: &[u8; 10] = b"pgsql_tmp\0"; +pub const PG_TEMP_FILE_PREFIX: &[u8; 10] = b"pgsql_tmp\0"; pub const SHARED_TUPLESTORE_SINGLE_PASS: u32 = 1; pub const MAX_TIMESTAMP_PRECISION: u32 = 6; pub const MAX_INTERVAL_PRECISION: u32 = 6; @@ -1609,7 +1609,7 @@ pub const POSTGRES_EPOCH_JDATE: u32 = 2451545; pub const DATETIME_MIN_JULIAN: u32 = 0; pub const DATE_END_JULIAN: u32 = 2147483494; pub const TIMESTAMP_END_JULIAN: u32 = 109203528; -pub const RELCACHE_INIT_FILENAME: &[u8; 17usize] = b"pg_internal.init\0"; +pub const RELCACHE_INIT_FILENAME: &[u8; 17] = b"pg_internal.init\0"; pub const INDEX_SIZE_MASK: u32 = 8191; pub const INDEX_AM_RESERVED_BIT: u32 = 8192; pub const INDEX_VAR_MASK: u32 = 16384; @@ -1760,7 +1760,7 @@ pub const SECURITY_RESTRICTED_OPERATION: u32 = 2; pub const SECURITY_NOFORCE_RLS: u32 = 4; pub const MIN_XFN_CHARS: u32 = 16; pub const MAX_XFN_CHARS: u32 = 40; -pub const VALID_XFN_CHARS: &[u8; 40usize] = b"0123456789ABCDEF.history.backup.partial\0"; +pub const VALID_XFN_CHARS: &[u8; 40] = b"0123456789ABCDEF.history.backup.partial\0"; pub const PGSTAT_NUM_PROGRESS_PARAM: u32 = 20; pub const _SYS_SOCKET_H: u32 = 1; pub const __iovec_defined: u32 = 1; @@ -2131,12 +2131,12 @@ pub const IN_LOOPBACKNET: u32 = 127; pub const INET_ADDRSTRLEN: u32 = 16; pub const INET6_ADDRSTRLEN: u32 = 46; pub const _RPC_NETDB_H: u32 = 1; -pub const _PATH_HEQUIV: &[u8; 17usize] = b"/etc/hosts.equiv\0"; -pub const _PATH_HOSTS: &[u8; 11usize] = b"/etc/hosts\0"; -pub const _PATH_NETWORKS: &[u8; 14usize] = b"/etc/networks\0"; -pub const _PATH_NSSWITCH_CONF: &[u8; 19usize] = b"/etc/nsswitch.conf\0"; -pub const _PATH_PROTOCOLS: &[u8; 15usize] = b"/etc/protocols\0"; -pub const _PATH_SERVICES: &[u8; 14usize] = b"/etc/services\0"; +pub const _PATH_HEQUIV: &[u8; 17] = b"/etc/hosts.equiv\0"; +pub const _PATH_HOSTS: &[u8; 11] = b"/etc/hosts\0"; +pub const _PATH_NETWORKS: &[u8; 14] = b"/etc/networks\0"; +pub const _PATH_NSSWITCH_CONF: &[u8; 19] = b"/etc/nsswitch.conf\0"; +pub const _PATH_PROTOCOLS: &[u8; 15] = b"/etc/protocols\0"; +pub const _PATH_SERVICES: &[u8; 14] = b"/etc/services\0"; pub const HOST_NOT_FOUND: u32 = 1; pub const TRY_AGAIN: u32 = 2; pub const NO_RECOVERY: u32 = 3; @@ -2192,10 +2192,10 @@ pub const PG_WAIT_EXTENSION: u32 = 117440512; pub const PG_WAIT_IPC: u32 = 134217728; pub const PG_WAIT_TIMEOUT: u32 = 150994944; pub const PG_WAIT_IO: u32 = 167772160; -pub const PGSTAT_STAT_PERMANENT_DIRECTORY: &[u8; 8usize] = b"pg_stat\0"; -pub const PGSTAT_STAT_PERMANENT_FILENAME: &[u8; 20usize] = b"pg_stat/pgstat.stat\0"; -pub const PGSTAT_STAT_PERMANENT_TMPFILE: &[u8; 19usize] = b"pg_stat/pgstat.tmp\0"; -pub const PG_STAT_TMP_DIR: &[u8; 12usize] = b"pg_stat_tmp\0"; +pub const PGSTAT_STAT_PERMANENT_DIRECTORY: &[u8; 8] = b"pg_stat\0"; +pub const PGSTAT_STAT_PERMANENT_FILENAME: &[u8; 20] = b"pg_stat/pgstat.stat\0"; +pub const PGSTAT_STAT_PERMANENT_TMPFILE: &[u8; 19] = b"pg_stat/pgstat.tmp\0"; +pub const PG_STAT_TMP_DIR: &[u8; 12] = b"pg_stat_tmp\0"; pub const PGSTAT_FILE_FORMAT_ID: u32 = 27638951; pub const SK_ISNULL: u32 = 1; pub const SK_UNARY: u32 = 2; @@ -2262,13 +2262,13 @@ pub const CHECKPOINT_CAUSE_XLOG: u32 = 128; pub const CHECKPOINT_CAUSE_TIME: u32 = 256; pub const XLOG_INCLUDE_ORIGIN: u32 = 1; pub const XLOG_MARK_UNIMPORTANT: u32 = 2; -pub const RECOVERY_SIGNAL_FILE: &[u8; 16usize] = b"recovery.signal\0"; -pub const STANDBY_SIGNAL_FILE: &[u8; 15usize] = b"standby.signal\0"; -pub const BACKUP_LABEL_FILE: &[u8; 13usize] = b"backup_label\0"; -pub const BACKUP_LABEL_OLD: &[u8; 17usize] = b"backup_label.old\0"; -pub const TABLESPACE_MAP: &[u8; 15usize] = b"tablespace_map\0"; -pub const TABLESPACE_MAP_OLD: &[u8; 19usize] = b"tablespace_map.old\0"; -pub const PROMOTE_SIGNAL_FILE: &[u8; 8usize] = b"promote\0"; +pub const RECOVERY_SIGNAL_FILE: &[u8; 16] = b"recovery.signal\0"; +pub const STANDBY_SIGNAL_FILE: &[u8; 15] = b"standby.signal\0"; +pub const BACKUP_LABEL_FILE: &[u8; 13] = b"backup_label\0"; +pub const BACKUP_LABEL_OLD: &[u8; 17] = b"backup_label.old\0"; +pub const TABLESPACE_MAP: &[u8; 15] = b"tablespace_map\0"; +pub const TABLESPACE_MAP_OLD: &[u8; 19] = b"tablespace_map.old\0"; +pub const PROMOTE_SIGNAL_FILE: &[u8; 8] = b"promote\0"; pub const XLOG_PAGE_MAGIC: u32 = 53520; pub const XLP_FIRST_IS_CONTRECORD: u32 = 1; pub const XLP_LONG_HEADER: u32 = 2; @@ -2279,8 +2279,8 @@ pub const WalSegMinSize: u32 = 1048576; pub const WalSegMaxSize: u32 = 1073741824; pub const DEFAULT_MIN_WAL_SEGS: u32 = 5; pub const DEFAULT_MAX_WAL_SEGS: u32 = 64; -pub const XLOGDIR: &[u8; 7usize] = b"pg_wal\0"; -pub const XLOG_CONTROL_FILE: &[u8; 18usize] = b"global/pg_control\0"; +pub const XLOGDIR: &[u8; 7] = b"pg_wal\0"; +pub const XLOG_CONTROL_FILE: &[u8; 18] = b"global/pg_control\0"; pub const MAXFNAMELEN: u32 = 64; pub const XLOG_FNAME_LEN: u32 = 24; pub const XLR_NORMAL_MAX_BLOCK_ID: u32 = 4; @@ -2461,7 +2461,7 @@ pub const XACT_COMPLETION_FORCE_SYNC_COMMIT: u32 = 2147483648; pub const EOH_HEADER_MAGIC: i32 = -1; pub const MAXDIM: u32 = 6; pub const EA_MAGIC: u32 = 689375833; -pub const PG_AUTOCONF_FILENAME: &[u8; 21usize] = b"postgresql.auto.conf\0"; +pub const PG_AUTOCONF_FILENAME: &[u8; 21] = b"postgresql.auto.conf\0"; pub const GUC_QUALIFIER_SEPARATOR: u8 = 46u8; pub const GUC_LIST_INPUT: u32 = 1; pub const GUC_LIST_QUOTE: u32 = 2; @@ -2488,7 +2488,7 @@ pub const GUC_UNIT_TIME: u32 = 983040; pub const GUC_EXPLAIN: u32 = 1048576; pub const GUC_RUNTIME_COMPUTED: u32 = 2097152; pub const GUC_UNIT: u32 = 1044480; -pub const DEFAULT_TABLE_ACCESS_METHOD: &[u8; 5usize] = b"heap\0"; +pub const DEFAULT_TABLE_ACCESS_METHOD: &[u8; 5] = b"heap\0"; pub const TABLE_INSERT_SKIP_FSM: u32 = 2; pub const TABLE_INSERT_FROZEN: u32 = 4; pub const TABLE_INSERT_NO_LOGICAL: u32 = 8; @@ -2525,7 +2525,7 @@ pub const PERFORM_DELETION_QUIETLY: u32 = 4; pub const PERFORM_DELETION_SKIP_ORIGINAL: u32 = 8; pub const PERFORM_DELETION_SKIP_EXTENSIONS: u32 = 16; pub const PERFORM_DELETION_CONCURRENT_LOCK: u32 = 32; -pub const DEFAULT_INDEX_TYPE: &[u8; 6usize] = b"btree\0"; +pub const DEFAULT_INDEX_TYPE: &[u8; 6] = b"btree\0"; pub const REINDEXOPT_VERBOSE: u32 = 1; pub const REINDEXOPT_REPORT_PROGRESS: u32 = 2; pub const REINDEXOPT_MISSING_OK: u32 = 4; @@ -2823,7 +2823,7 @@ pub const ACL_CREATE_TEMP_CHR: u8 = 84u8; pub const ACL_CONNECT_CHR: u8 = 99u8; pub const ACL_SET_CHR: u8 = 115u8; pub const ACL_ALTER_SYSTEM_CHR: u8 = 65u8; -pub const ACL_ALL_RIGHTS_STR: &[u8; 15usize] = b"arwdDxtXUCTcsA\0"; +pub const ACL_ALL_RIGHTS_STR: &[u8; 15] = b"arwdDxtXUCTcsA\0"; pub const ACL_ALL_RIGHTS_COLUMN: u32 = 39; pub const ACL_ALL_RIGHTS_RELATION: u32 = 127; pub const ACL_ALL_RIGHTS_SEQUENCE: u32 = 262; @@ -3244,33 +3244,33 @@ pub const FORMAT_TYPE_ALLOW_INVALID: u32 = 2; pub const FORMAT_TYPE_FORCE_QUALIFY: u32 = 4; pub const FORMAT_TYPE_INVALID_AS_NULL: u32 = 8; pub const MAX_TIME_PRECISION: u32 = 6; -pub const DAGO: &[u8; 4usize] = b"ago\0"; -pub const DCURRENT: &[u8; 8usize] = b"current\0"; -pub const EPOCH: &[u8; 6usize] = b"epoch\0"; -pub const INVALID: &[u8; 8usize] = b"invalid\0"; -pub const EARLY: &[u8; 10usize] = b"-infinity\0"; -pub const LATE: &[u8; 9usize] = b"infinity\0"; -pub const NOW: &[u8; 4usize] = b"now\0"; -pub const TODAY: &[u8; 6usize] = b"today\0"; -pub const TOMORROW: &[u8; 9usize] = b"tomorrow\0"; -pub const YESTERDAY: &[u8; 10usize] = b"yesterday\0"; -pub const ZULU: &[u8; 5usize] = b"zulu\0"; -pub const DMICROSEC: &[u8; 8usize] = b"usecond\0"; -pub const DMILLISEC: &[u8; 8usize] = b"msecond\0"; -pub const DSECOND: &[u8; 7usize] = b"second\0"; -pub const DMINUTE: &[u8; 7usize] = b"minute\0"; -pub const DHOUR: &[u8; 5usize] = b"hour\0"; -pub const DDAY: &[u8; 4usize] = b"day\0"; -pub const DWEEK: &[u8; 5usize] = b"week\0"; -pub const DMONTH: &[u8; 6usize] = b"month\0"; -pub const DQUARTER: &[u8; 8usize] = b"quarter\0"; -pub const DYEAR: &[u8; 5usize] = b"year\0"; -pub const DDECADE: &[u8; 7usize] = b"decade\0"; -pub const DCENTURY: &[u8; 8usize] = b"century\0"; -pub const DMILLENNIUM: &[u8; 11usize] = b"millennium\0"; -pub const DA_D: &[u8; 3usize] = b"ad\0"; -pub const DB_C: &[u8; 3usize] = b"bc\0"; -pub const DTIMEZONE: &[u8; 9usize] = b"timezone\0"; +pub const DAGO: &[u8; 4] = b"ago\0"; +pub const DCURRENT: &[u8; 8] = b"current\0"; +pub const EPOCH: &[u8; 6] = b"epoch\0"; +pub const INVALID: &[u8; 8] = b"invalid\0"; +pub const EARLY: &[u8; 10] = b"-infinity\0"; +pub const LATE: &[u8; 9] = b"infinity\0"; +pub const NOW: &[u8; 4] = b"now\0"; +pub const TODAY: &[u8; 6] = b"today\0"; +pub const TOMORROW: &[u8; 9] = b"tomorrow\0"; +pub const YESTERDAY: &[u8; 10] = b"yesterday\0"; +pub const ZULU: &[u8; 5] = b"zulu\0"; +pub const DMICROSEC: &[u8; 8] = b"usecond\0"; +pub const DMILLISEC: &[u8; 8] = b"msecond\0"; +pub const DSECOND: &[u8; 7] = b"second\0"; +pub const DMINUTE: &[u8; 7] = b"minute\0"; +pub const DHOUR: &[u8; 5] = b"hour\0"; +pub const DDAY: &[u8; 4] = b"day\0"; +pub const DWEEK: &[u8; 5] = b"week\0"; +pub const DMONTH: &[u8; 6] = b"month\0"; +pub const DQUARTER: &[u8; 8] = b"quarter\0"; +pub const DYEAR: &[u8; 5] = b"year\0"; +pub const DDECADE: &[u8; 7] = b"decade\0"; +pub const DCENTURY: &[u8; 8] = b"century\0"; +pub const DMILLENNIUM: &[u8; 11] = b"millennium\0"; +pub const DA_D: &[u8; 3] = b"ad\0"; +pub const DB_C: &[u8; 3] = b"bc\0"; +pub const DTIMEZONE: &[u8; 9] = b"timezone\0"; pub const AM: u32 = 0; pub const PM: u32 = 1; pub const HR24: u32 = 2; @@ -3397,7 +3397,7 @@ pub const DEFAULT_NUM_DISTINCT: u32 = 200; pub const DEFAULT_UNK_SEL: f64 = 0.005; pub const DEFAULT_NOT_UNK_SEL: f64 = 0.995; pub const SELFLAG_USED_DEFAULT: u32 = 1; -pub const RANGE_EMPTY_LITERAL: &[u8; 6usize] = b"empty\0"; +pub const RANGE_EMPTY_LITERAL: &[u8; 6] = b"empty\0"; pub const RANGE_EMPTY: u32 = 1; pub const RANGE_LB_INC: u32 = 2; pub const RANGE_UB_INC: u32 = 4; diff --git a/pgrx-sql-entity-graph/Cargo.toml b/pgrx-sql-entity-graph/Cargo.toml index 44f7ddaf9..5b692f577 100644 --- a/pgrx-sql-entity-graph/Cargo.toml +++ b/pgrx-sql-entity-graph/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pgrx-sql-entity-graph" -version = "0.9.5" +version = "0.9.6" authors = ["ZomboDB, LLC "] license = "MIT" description = "Sql Entity Graph for `pgrx`" diff --git a/pgrx-tests/Cargo.toml b/pgrx-tests/Cargo.toml index 9bbbafc9b..3422d5382 100644 --- a/pgrx-tests/Cargo.toml +++ b/pgrx-tests/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pgrx-tests" -version = "0.9.5" +version = "0.9.6" authors = ["ZomboDB, LLC "] license = "MIT" description = "Test framework for 'pgrx'-based Postgres extensions" @@ -37,8 +37,8 @@ clap-cargo = "0.10.0" owo-colors = "3.5.0" once_cell = "1.18.0" libc = "0.2.146" -pgrx-macros = { path = "../pgrx-macros", version = "=0.9.5" } -pgrx-pg-config = { path = "../pgrx-pg-config", version = "=0.9.5" } +pgrx-macros = { path = "../pgrx-macros", version = "=0.9.6" } +pgrx-pg-config = { path = "../pgrx-pg-config", version = "=0.9.6" } postgres = "0.19.5" regex = "1.8.4" serde = "1.0" @@ -53,4 +53,4 @@ eyre = "0.6.8" # testing functions that return `eyre::Result` [dependencies.pgrx] path = "../pgrx" default-features = false -version = "=0.9.5" +version = "=0.9.6" diff --git a/pgrx-tests/src/tests/datetime_tests.rs b/pgrx-tests/src/tests/datetime_tests.rs index 13c3f2e92..fc0122cd2 100644 --- a/pgrx-tests/src/tests/datetime_tests.rs +++ b/pgrx-tests/src/tests/datetime_tests.rs @@ -573,4 +573,12 @@ mod tests { assert_eq!(result, Interval::new(6, 15, 42)?); Ok(()) } + + #[pg_test] + fn test_old_date() -> Result<(), Box> { + let array = Spi::get_one::>("SELECT ARRAY['1977-07-04']::date[]")?.unwrap(); + let first = array.into_iter().next(); + assert_eq!(first, Some(Some(Date::from_str("1977-07-04")?))); + Ok(()) + } } diff --git a/pgrx-version-updater/Cargo.toml b/pgrx-version-updater/Cargo.toml index 78a326f99..9e1e9f569 100644 --- a/pgrx-version-updater/Cargo.toml +++ b/pgrx-version-updater/Cargo.toml @@ -7,7 +7,7 @@ license = "MIT" description = "Standalone tool to update PGRX Cargo.toml versions and dependencies in preparation for a release." [dependencies] -clap = { version = "4.3.3", features = [ "env", "derive" ] } +clap = { version = "4.3.5", features = [ "env", "derive" ] } owo-colors = "3.5.0" toml_edit = { version = "0.19.10" } walkdir = "2" diff --git a/pgrx/Cargo.toml b/pgrx/Cargo.toml index 2b1bb982f..75f298ee9 100644 --- a/pgrx/Cargo.toml +++ b/pgrx/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pgrx" -version = "0.9.5" +version = "0.9.6" authors = ["ZomboDB, LLC "] license = "MIT" description = "pgrx: A Rust framework for creating Postgres extensions" @@ -33,14 +33,14 @@ no-default-features = true rustc-args = ["--cfg", "docsrs"] [dependencies] -pgrx-macros = { path = "../pgrx-macros", version = "=0.9.5" } -pgrx-pg-sys = { path = "../pgrx-pg-sys", version = "=0.9.5" } -pgrx-sql-entity-graph = { path = "../pgrx-sql-entity-graph", version = "=0.9.5" } +pgrx-macros = { path = "../pgrx-macros", version = "=0.9.6" } +pgrx-pg-sys = { path = "../pgrx-pg-sys", version = "=0.9.6" } +pgrx-sql-entity-graph = { path = "../pgrx-sql-entity-graph", version = "=0.9.6" } # used to internally impl things once_cell = "1.18.0" # polyfill until std::lazy::OnceCell stabilizes seq-macro = "0.3" # impls loops in macros -uuid = { version = "1.3.3", features = [ "v4" ] } # PgLwLock and shmem +uuid = { version = "1.3.4", features = [ "v4" ] } # PgLwLock and shmem enum-map = "2.5.0" # error handling and logging @@ -48,7 +48,7 @@ thiserror = "1.0" # exposed in public API atomic-traits = "0.3.0" # PgAtomic and shmem init -bitflags = "2.3.1" # BackgroundWorker +bitflags = "2.3.2" # BackgroundWorker bitvec = "1.0" # processing array nullbitmaps heapless = "0.7.16" # shmem and PgLwLock libc = "0.2.146" # FFI type compat diff --git a/pgrx/src/datum/date.rs b/pgrx/src/datum/date.rs index 38c69a945..b03f6e3fc 100644 --- a/pgrx/src/datum/date.rs +++ b/pgrx/src/datum/date.rs @@ -63,7 +63,7 @@ impl TryFrom for Date { #[inline] fn try_from(datum: pg_sys::Datum) -> Result { - pg_sys::DateADT::try_from(datum.value() as isize).map(|d| Date(d)) + Ok(Date(datum.value() as pg_sys::DateADT)) } }